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

Incorrect URL handling in org.apache.cxf.transport.servlet.BaseUrlHelper method getBaseURL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.4.1
    • 2.4.2, 2.5
    • Transports
    • None
    • Unknown

    Description

      I've found a piece of incorrect code in org.apache.cxf.transport.servlet.BaseUrlHelper method getBaseURL()
      There's such a code at line 41: "index = reqPrefix.indexOf(basePath);"
      This code handles URL badly when host name starts with application context name.

      Example:
      URL "http://arm.mycompany.com:8998/arm/arm" will produce return value of "http://arm" instead of "http://arm.mycompany.com:8998/arm"

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            k.salikhov Konstantin V. Salikhov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: