JDK-4921268 : getResponseCode() doesn't return correct value when using cached response
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-09-11
  • Updated: 2003-09-27
  • Resolved: 2003-09-27
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.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description
Problem with the implementation of sun.net.www.protocol.http.HttpURLConnection.mapToMessageHeader. Because Map doesn't preserve orders, in this case, the status line is not necessarily returned first in it's iterator. But getResponseCode() depends on the fact that the status line is always at the first line of a MessageHeader. The fix is to make sure the status line is always prepended into the MessageHeader.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b22
14-06-2004

EVALUATION Will fix for Tiger. ###@###.### 2003-09-11
11-09-2003