JDK-4191185 : HttpURLConnection throws a FileNotFound exception if the resultcode is >= 400
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-11-18
  • Updated: 2000-02-25
  • Resolved: 2000-02-25
Related Reports
Duplicate :  
Description

Name: jn10789			Date: 11/18/98


This makes it impossible to figure out the result code if the error is 400 or greater.
It should only throw FileNotFound if the error is 404, and then it is questionable if
getResponseCode should throw an exception if there is a responseCode available.
(Review ID: 39191)
======================================================================

Comments
WORK AROUND Name: jn10789 Date: 11/18/98 None without patching getInputStream ======================================================================
11-06-2004

EVALUATION Is this already fixed in Kestrel (is this a dup of an earlier bug)? It sounds like this issue is that he's calling getResponseCode() and it is throwing FileNotFoundException instead of returning 404 (for example). jeff.nisewanger@Eng 2000-02-22
22-02-2000