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

NTLM proxy auth does not work with basic/digest server auth at same time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.4.2
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      x86
    • OS:
      windows, windows_nt

      Description

      If a client tries to access a https or http resource in one request
      which requires ntlm proxy authentication and basic or digest server
      authentication then the request fails.

      This happens because the connection between the client and proxy
      may have to be closed, even though ntlm would normally require the
      connection to be kept open. In this case, the client needs to remember
      the server authentication information and include it at the apprpriate time
      with the proxy authorization when thr retry happens.

      Problem does not occur if proxy auth and server auth occurs in
      separate requests (because of caching).

      -------

      Actually, the problem is more general than as described above.
      It happens with any kind of authentication (basic, digest, ntlm)
      when both proxy and server need to be authenticated in the same
      request.

      An additional, but related problem occurs if during the authentication
      to the proxy or server, incorrect credentials are supplied. If this happens,
      the HttpURLConnection does not recover and throws an IOException to the
      application. What should happen is that the request should be retried
      (up to the retry limit) and the applications authenticator should be
      queried for new credentials.

      ###@###.### 2002-11-25

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michaelm Michael McMahon
              Reporter:
              michaelm Michael McMahon
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: