You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/06/10 20:08:51 UTC

DO NOT REPLY [Bug 49424] New: Using URL.ChunkedStreamingMode results in HTTP response code: 405

https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

           Summary: Using URL.ChunkedStreamingMode results in HTTP
                    response code: 405
           Product: Tomcat 6
           Version: 6.0.26
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Connectors
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: earl.nolan@nfl.com


Using the URL class coupled with setChunkedStreamingMode  results in:

SEVERE: java.lang.NullPointerException
    at
org.apache.catalina.connector.Request.readChunkedPostBody(Request.java:2632)

This is true for 6.0.26.  This worked fine in 6.0.16 and the source code
that I have for 6.0.20 does not have the readChunkedPostBody method.

Attached is a TestNG unit test demonstrating the issue.  The method
connectNoChunking() runs fine while the method connectWithChunking() fails.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-06-10 15:22:11 EDT ---
The header in the test case is not compatible with the Apache License v2.
Please confirm how you intended this test case to be licensed.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

--- Comment #3 from Earl Nolan <ea...@nfl.com> 2010-06-10 15:42:04 EDT ---
(In reply to comment #2)
> The header in the test case is not compatible with the Apache License v2.
> Please confirm how you intended this test case to be licensed.

Sorry about that, our standard header.  I'll upload the file without
the header and release all rights to the test case.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

--- Comment #5 from Mark Thomas <ma...@apache.org> 2010-06-10 16:00:43 EDT ---
Thanks. I've converted this to a Tomcat unit test and confirmed the problem.

I've fixed the bug in trunk and proposed the fix for 6.0.x

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Connectors                  |Catalina
            Version|6.0.26                      |5.5.29
            Product|Tomcat 6                    |Tomcat 5
   Target Milestone|default                     |---

--- Comment #8 from Konstantin Kolinko <kn...@gmail.com> 2010-06-17 12:28:37 EDT ---
Proposed for 5.5 as well.

Fixed in 6.0 in r955665 and will be in 6.0.28 and later.
Note, that 6.0.27 does not include the fix.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

--- Comment #7 from Mark Thomas <ma...@apache.org> 2010-06-10 18:02:40 EDT ---
Current plans are to start the 6.0.27 release process on Monday next week.
Depending on how that goes the there could be a release by the end of next week
or it could take several weeks to get to a stable release.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

Earl Nolan <ea...@nfl.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25578|0                           |1
        is obsolete|                            |

--- Comment #4 from Earl Nolan <ea...@nfl.com> 2010-06-10 15:42:46 EDT ---
Created an attachment (id=25579)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25579)
TestNG unit test to demonstrate the issue.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

--- Comment #1 from Earl Nolan <ea...@nfl.com> 2010-06-10 14:10:14 EDT ---
Created an attachment (id=25578)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25578)
TestNG unit test to demonstrate the issue.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

--- Comment #6 from Earl Nolan <ea...@nfl.com> 2010-06-10 17:49:07 EDT ---
(In reply to comment #5)
> Thanks. I've converted this to a Tomcat unit test and confirmed the problem.
> 
> I've fixed the bug in trunk and proposed the fix for 6.0.x

Excellent!

Any visibility on when the next point release might be?

We would like to upgrade, this is a blocker for us, and we will not be able
to upgrade during the middle of the football season.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 49424] Using URL.ChunkedStreamingMode results in HTTP response code: 405

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49424

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #9 from Mark Thomas <ma...@apache.org> 2010-06-22 07:55:40 EDT ---
The fix has been applied 5.5.x and will be included in 5.5.30 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org