cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-5068) Getting a cached base url from UriInfo object
Date Thu, 13 Jun 2013 11:55:20 GMT

    [ https://issues.apache.org/jira/browse/CXF-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682152#comment-13682152
] 

Sergey Beryozkin edited comment on CXF-5068 at 6/13/13 11:53 AM:
-----------------------------------------------------------------

FYI, on the trunk, what will happen now is that "127.0.0.1" will always be replaced by local
host, one of TCK tests was actually enforcing it and so I updated the code, it's probably
reasonable anyway to get "localhost" returned instead of "127.0.0.1". But the actual issue
still stands of course 
                
      was (Author: sergey_beryozkin):
    FYI, on the trunk, what will happen now in that "127.0.0.1" will always be replaced by
local host, one of TCK tests was actually enforcing it and so I updated the code, it's probably
reasonable anyway to get "localhost" returned instead of "127.0.0.1". Bu the actual issue
still stands of course 
                  
> Getting a cached base url from UriInfo object
> ---------------------------------------------
>
>                 Key: CXF-5068
>                 URL: https://issues.apache.org/jira/browse/CXF-5068
>             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) http://127.0.0.1/endpoint -> base uri returns localhost
> Restart server and execute in reverse order then the base uri always returns 127.0.0.1
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: http://www.atlassian.com/software/jira

Mime
View raw message