[
https://issues.apache.org/jira/browse/CXF-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14372220#comment-14372220
]
Sergey Beryozkin commented on CXF-4109:
---------------------------------------
I'm seeing URI.getHost() got back into CXF 3.0.x, so I've just removed the
references to it.
Can you check this code,
https://fisheye6.atlassian.com/browse/~br=2.7.x-fixes/cxf/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/HttpUtils.java?r=4c509a53208f69dd81c0c25990277a2e65be68f4#to261
Do you have any idea what call may be causing the caching of the host and port ?
thanks
> 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)