[
https://issues.apache.org/jira/browse/CXF-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14364889#comment-14364889
]
Knut-Olav Hoven commented on CXF-4109:
--------------------------------------
This issue seems to be back, at least in CXF version 2.7.14.
UriInfo caches the Host and port information (from X-Port) from the first
requests.
> 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
> Assignee: Sergey Beryozkin
> Fix For: 2.4.7, 2.5.3, 2.6
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)