dogtagpki / pki

The Dogtag Certificate System is an enterprise-class Certificate Authority (CA) which supports all aspects of certificate lifecycle management, including key archival, OCSP and smartcard management.
https://www.dogtagpki.org
GNU General Public License v2.0
378 stars 138 forks source link

TPSServlet throws null pointer exception #1583

Open pki-bot opened 4 years ago

pki-bot commented 4 years ago

This issue was migrated from Pagure Issue #1018. Originally filed by edewata (@edewata) on 2014-05-21 17:44:06:


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

pki-bot commented 4 years ago

Comment from mharmsen (@mharmsen) at 2014-09-24 20:18:47

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

pki-bot commented 4 years ago

Comment from mharmsen (@mharmsen) at 2015-01-15 01:24:55

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

pki-bot commented 4 years ago

Comment from mharmsen (@mharmsen) at 2015-03-03 03:51:49

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.

pki-bot commented 4 years ago

Comment from edewata (@edewata) at 2017-02-27 14:10:49

Metadata Update from @edewata: