Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4109

UriInfo getHost caches first request's host and always returns that on subsequent calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.2
    • 2.4.7, 2.5.3, 2.6
    • None
    • None
    • Linux CentOS 6

    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            dhintz Dan Hintz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: