[
https://issues.apache.org/jira/browse/CXF-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829827#comment-13829827
]
Sergey Beryozkin commented on CXF-5416:
---------------------------------------
You have to set a CXFServlet "disable-address-updates" to true to make it work
correctly. Please note that CXF 3.0.0-milestone1 (being released right now)
will work correctly by default. But for now just set that parameter.
thanks
> UriInfo injection - not getting correct path/base path from UriInfo object
> which gets injected
> ----------------------------------------------------------------------------------------------
>
> Key: CXF-5416
> URL: https://issues.apache.org/jira/browse/CXF-5416
> Project: CXF
> Issue Type: Bug
> Reporter: Srikanth Hugar
>
> Problem in getting the correct path/base path from UriInfo object which gets
> injected. These values for the very first request are right, but the
> subsequent requests still show the same value as the very first one. This
> becomes an issue when the requests differ in the server name (ip/fqdn). I
> Apache tomcat with apache cxf.
> public Response getVal (@Context UriInfo uriInfo) {
> uriInfo.getAbsolutePath()
> }
> The first request i get after the application server is up is -
> myserver.com:443/root/service1. Here when i get absolute path from UriInfo it
> gives a right value. But the second request is send to the ip address of the
> same server - x.x.x.x:443/root/service1. But when I get the absolute path
> from UriInfo, it still has myserver.com:443/root/service1 in it instead of ip
> address x.x.x.x:443/root/service1. Every new request gives the absolute path
> of the very first request always.
--
This message was sent by Atlassian JIRA
(v6.1#6144)