Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5253

exception from mvn deploy, fails when the username and password are too secure/long

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0.3
    • None
    • None
    • None

    Description

      If the combination of the username and password is too long, the Base64 encoder used inserts newlines in the encoded value, which is invalid

      java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic c29tZVVzZXJuYW1lOnNvbWVMb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29v
      b29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vbmdQYXNzd29yZA==
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------

      Attaching a sample pom and settings, run 'mvn -s settings.xml deploy' to reproduce

      Attachments

        1. pom.xml
          0.6 kB
          Scott Clasen
        2. settings.xml
          0.2 kB
          Scott Clasen

        Activity

          People

            Unassigned Unassigned
            sclasen Scott Clasen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: