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

FileNotFoundException thrown from HttpURLConnection for a valid file

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2beta4
    • CPU:
      generic
    • OS:
      solaris_2.5.1
    • Verification:
      Not verified

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: