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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.2
    • Fix Version/s: 2.4.7, 2.5.3, 2.6
    • Component/s: None
    • Labels:
      None
    • Environment:

      Linux CentOS 6

    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: