Hide Forgot
Description of problem: Using the URL class coupled with setChunkedStreamingMode results in: SEVERE: java.lang.NullPointerException at org.apache.catalina.connector.Request.readChunkedPostBody(Request.java:2632) Version-Release number of selected component (if applicable): How reproducible: Always. Steps to Reproduce: 1. public void connectWithChunking() throws IOException { HttpURLConnection conn = getConnection(); conn.setChunkedStreamingMode(8 * 1024); InputStream is = conn.getInputStream(); assertNotNull(is); } 2. 3. Actual results: SEVERE: java.lang.NullPointerException at org.apache.catalina.connector.Request.readChunkedPostBody(Request.java:2632) Expected results: No null pointer exception. Additional info: Fixed upstream at http://svn.apache.org/viewvc?view=revision&revision=955665 . Tracked upstream at https://issues.apache.org/bugzilla/show_bug.cgi?id=49424 .
Created attachment 530078 [details] Proposed patch
Fixed in el6. Patch is not checked yet.
Created attachment 530337 [details] Proposed patch
Created attachment 530384 [details] Reproducer
giving qa_ack+ reproducer exists
Asked cusatomer for exact package and if reproducer is available.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Patch adds a check for form data before processing. If request body length is zero, null is returned without further processiong
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0945.html