Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4055309

FileNotFoundException thrown from HttpURLConnection for a valid file

XMLWordPrintable

    • 1.2beta4
    • generic
    • solaris_2.5.1
    • Not verified

      The method getInputStream in the HttpURLConnection class throws a FileNotFoundException for a protected servlet or a protected file which is aliased. Since the response code for a protected file or servlet is 401 and since it is aliased the code at line 359 in HttpURLConnection.java throws a FileNotFoundException and doesnt return a valid input stream. Maybe a fix could be to throw the exception if the response code is not 401 followed by the rest of the logic.

            brenaudsunw Benjamin Renaud (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: