Srikanth Hugar created CXF-5416:
-----------------------------------

             Summary: 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)

Reply via email to