hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1443) HttpCache uses the physical host instead of the virtual host in the cache key
Date Sun, 29 Dec 2013 12:10:51 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13858323#comment-13858323
] 

Oleg Kalnichevski commented on HTTPCLIENT-1443:
-----------------------------------------------

Francois-Xavier,

If you are not going to do any more work on this issue, could you please mark it as resolved
and also update the release notes if you think this fix is noteworthy? 

Oleg

> HttpCache uses the physical host instead of the virtual host in the cache key
> -----------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1443
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1443
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpCache
>    Affects Versions: 4.3.1
>            Reporter: Francois-Xavier Bonnet
>            Priority: Minor
>
> 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()



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message