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

HttpURLConnection should not throw a FileNotFoundException on HTTP 401 response

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.1.6
    • core-libs
    • None
    • generic
    • solaris_2.5.1

      getInputStream() method of sun.net.www.protocol.http.HttpURLConnection throws
      a FileNotFoundException if the webserver returns a 401 (> 400) response (if
      the requested URL did not end with an .html extension).
      This causes a problem for .asp files which are protected.

      test case: Try logging into www.fool.com site.

            mmcclosksunw Michael Mccloskey (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: