Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11849

HTTP Basic Authentication for monitoring external jobs does not allow escaped characters in user or password

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It looks like basic authentication does not allow escaped passwords. It encodes the escape characters. For example:

      HUDSON_HOME=http://user:p%40ssword@testjenkins.com/

      Right now, the Base64Encoder will encode "user : p%40ssword" instead of "user : p@ssword". This causes a 403 Unauthorized.

      It looks like it just needs a call to java.net.URLDecoder.decode before Base64Encoder.encode in core/src/main/java/hudson/Main.java.

        Attachments

          Activity

          notid bryce covert created issue -
          notid bryce covert made changes -
          Field Original Value New Value
          Description It looks like basic authentication does not allow escaped passwords. It encodes the escape characters. For example:

          HUDSON_HOME=http://user:p%40ssword@testjenkins.com/

          Right now, the Base64Encoder will encode "user:p%40ssword" instead of "user:p@ssword". This causes a 403 Unauthorized.

          It looks like it just needs a call to java.net.URLDecoder.decode before Base64Encoder.encode in core/src/main/java/hudson/Main.java.
          It looks like basic authentication does not allow escaped passwords. It encodes the escape characters. For example:

          HUDSON_HOME=http://user:p%40ssword@testjenkins.com/

          Right now, the Base64Encoder will encode "user : p%40ssword" instead of "user : p@ssword". This causes a 403 Unauthorized.

          It looks like it just needs a call to java.net.URLDecoder.decode before Base64Encoder.encode in core/src/main/java/hudson/Main.java.
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 142092 ] JNJira + In-Review [ 175614 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            notid bryce covert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: