JDK-6652642 : HttpServer does not accept long Content-Length
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6u4
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2008-01-18
  • Updated: 2010-04-23
  • Resolved: 2010-04-23
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The com.sun.net.httpserver.HttpServer listener does not accept Content-Length header with value 2147483648 (2^31) or larger.  Manually telnetting to a listening server and entering this Content-Length header results in:

<h1>400 Bad Request</h1>NumberFormatException thrownConnection to localhost closed by foreign host.

And control is never passed to my HttpHandler code.

Comments
EVALUATION This is a duplicate of 6756771.
23-04-2010