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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.10, 2.5.6, 2.6.3
    • Transports
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: