JDK-6756771 : com.sun.net.httpserver.HttpServer should handle POSTs larger than 2Gig
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6u4,7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_10
  • CPU: generic,sparc
  • Submitted: 2008-10-07
  • Updated: 2017-07-20
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b40Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
com.sun.net.httpserver.HttpServer will throw a NumberFormatException in its log if it receives a (POST) request with its content-length header greater that 2 gigabytes. This is because the server implementation uses ints to represent the value of the request content-length.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/jdk7/jdk/rev/98ac3d398ed6
20-07-2017

EVALUATION Change the implementation to use longs instead of ints.
07-10-2008