Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47C739284 for ; Tue, 14 Feb 2012 15:20:26 +0000 (UTC) Received: (qmail 54402 invoked by uid 500); 14 Feb 2012 15:20:26 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 54372 invoked by uid 500); 14 Feb 2012 15:20:26 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 54363 invoked by uid 99); 14 Feb 2012 15:20:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 15:20:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 15:20:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6FB2D1B7373 for ; Tue, 14 Feb 2012 15:19:59 +0000 (UTC) Date: Tue, 14 Feb 2012 15:19:59 +0000 (UTC) From: "Dan Hintz (Created) (JIRA)" To: issues@cxf.apache.org Message-ID: <724391871.36683.1329232799458.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CXF-4109) UriInfo getHost caches first request's host and always returns that on subsequent calls MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org UriInfo getHost caches first request's host and always returns that on subsequent calls --------------------------------------------------------------------------------------- Key: CXF-4109 URL: https://issues.apache.org/jira/browse/CXF-4109 Project: CXF Issue Type: Bug Affects Versions: 2.5.2 Environment: Linux CentOS 6 Reporter: Dan Hintz The call to UriInfo.getHost() is caching the first request's host and always returning that on all subsequent calls. For example, Tomcat starts up and a request is made to the server using a URL of "http://1.2.3.4/apicall", getHost() returns "1.2.3.4", the next request is made using a URL of "http://mydomainname.com/apicall", getHost() still returns "1.2.3.4", where "mydomainname.com" is expected. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira