cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-5068) Getting a cached base url from UriInfo object
Date Thu, 13 Jun 2013 13:07:21 GMT


Sergey Beryozkin commented on CXF-5068:

I think I know the reason for this issue. Try adding this servlet parameter
This can also be set as "org.apache.cxf.servlet.disable-address-updates" property.
FYI, I'm also updating HTTP transport a bit so that the runtime will always get the correct
current address irrespectively of whether this property is enabled or not.
> Getting a cached base url from UriInfo object
> ---------------------------------------------
>                 Key: CXF-5068
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.7.5
>            Reporter: Stephan Klevenz
>            Assignee: Sergey Beryozkin
> We are using UriInfo.getBaseUriBuilder() to get the base URI of the request. It looks
like that the base uri or at least the host name is cached which shouldn't be.
> Test Case:
> Perform following request sequence:
> 1) http://localhost/endpoint -> base uri returns localhost
> 2) -> base uri returns localhost
> Restart server and execute in reverse order then the base uri always returns
as host.
> Assumption: host name is cached in the 2nd request.
> This is an issue for servers supporting alias host names.
> Workaround: construct base url from HttpServletRequest.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message