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

Colon character in the password is not hanled properly in AbstractHTTPDestination class

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.10, 2.5.6, 2.6.3
    • Component/s: Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If the user password contains colon character then the org.apache.cxf.configuration.security.AuthorizationPolicy.getPassword() method returns only the substring before the colon character.

      The issue is in the following class: org.apache.cxf.transport.http.AbstractHTTPDestination

      In method getAuthorizationPolicyFromMessage(String credentials) the credentials are split by colon. Then only the second element of the array is set as password, but in this case the elements are more then two.

      Example of credentials:
      "Aladin:Test:1234"

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              boris_iv Boris Ivanov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: