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

Caching of proxy auth schemes is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4.1
    • 4.5
    • HttpClient (classic)
    • None
    • HttpClient v4.3.3 and v4.4.1, Linux Mint 17 (x86_64), Java 7 (Oracle, 1.7.0_51)

    Description

      The implementation of the authentication cache has changed in HttpClient v4.4.1 by using object serialization and de-serialization to store and retrieve the authentication schemes for a given host instead of using object references as was done in v4.3.3.

      When using basic authentication for a proxy this mechanism does not work reliably, causing subsequent requests to use the wrong authentication header (Authorization vs Proxy-Authorization).

      Attachments

        1. AuthCacheTest.java
          5 kB
          Hartmut Arlt

        Issue Links

          Activity

            People

              Unassigned Unassigned
              harlt Hartmut Arlt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: