#1018 TPSServlet throws null pointer exception
Closed: migrated 3 years ago by dmoluguw. Opened 9 years ago by edewata.

The TPSServlet throws null pointer exception when accessed via browser using the following URL:

http://localhost:8080/tps/tps

java.lang.NullPointerException
    org.dogtagpki.server.tps.TPSServlet.service(TPSServlet.java:43)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:606)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169)

This is because the servlet tries to check the Transfer-Encoding header to make sure the request is chunked, but on a browser this header is unset. The servlet needs to handle a possible null value and generate a proper response (e.g. HTTP 400 or something else indicating invalid/unsupported request).

Proposed milestone: 10.2 backlog


Per Dogtag 10.2.3 Triage meeting of 09/24/2014:
proposed Milestone: 10.2.3

Per Dogtag 10.2.X meeting of 01/14/2015: Milestone 10.2 Backlog

Per 10.2.3 TRIAGE meeting of 02/26/2015: 10.3

NOTE: Moved from 10.2 Backlog since it was not a documentation/man page issue.

Metadata Update from @edewata:
- Issue set to the milestone: UNTRIAGED

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1583

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata Update from @dmoluguw:
- Issue close_status updated to: migrated
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata