Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15FB91056F for ; Sun, 29 Dec 2013 12:33:58 +0000 (UTC) Received: (qmail 52438 invoked by uid 500); 29 Dec 2013 12:33:55 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 52424 invoked by uid 500); 29 Dec 2013 12:33:53 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 52408 invoked by uid 99); 29 Dec 2013 12:33:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Dec 2013 12:33:51 +0000 Date: Sun, 29 Dec 2013 12:33:51 +0000 (UTC) From: "Francois-Xavier Bonnet (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1443) HttpCache uses the physical host instead of the virtual host in the cache key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13858328#comment-13858328 ] Francois-Xavier Bonnet commented on HTTPCLIENT-1443: ---------------------------------------------------- I just marked the issue as resolved but I cannot update the release notes right now as I am out of the office. > 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 > Fix For: 4.3.2 > > > 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