Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2077

Migration from HttpClient v4.5.x to v5.0 causes NTLM proxy authentication failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0
    • 5.0.1
    • HttpClient (classic)
    • None

    Description

      Upgrade of HttpClient from v4.5.x to v5.0 causes a NTLM proxy authentication failure (s. attached test class NtlmProxyAuthenticationTest.java with generated log file NtlmProxyAuthenticationTest.log).

      Error logged: 

      01:27:20.360 [main] DEBUG org.apache.hc.client5.http.impl.auth.HttpAuthenticator - Authentication failed
      ----------------------------------------
      407 authenticationrequired
       
      

       

      The same class implemented with HttpClient v4.5.x does not have any proxy issues and connects to the target as expected.

       

      Attachments

        1. NtlmProxyAuthenticationTest.java
          3 kB
          Alexander Kohanov
        2. NtlmProxyAuthenticationTest.log
          91 kB
          Alexander Kohanov

        Activity

          People

            Unassigned Unassigned
            vonahok Alexander Kohanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m