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

HttpCache uses the physical host instead of the virtual host in the cache key

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.3.2
    • Component/s: HttpCache
    • Labels:
      None

      Description

      The cache key is generated by class org.apache.http.impl.client.cache.CacheKeyGenerator based on the host and uri but currently the host used is the physical target server taken from given by route.getTargetHost()

      As a result when using 1 target server with several virtual hosts the cache entries from the different virtual hosts are mixed.

      The cache key should be generated using the virtual host given by org.apache.http.protocol.HttpCoreContext.getTargetHost()

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fx.bonnet Francois-Xavier Bonnet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: