[
https://jira.codehaus.org/browse/MNG-5253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302889#comment-302889
]
Scott Clasen commented on MNG-5253:
-----------------------------------
Hmm, this a base64 encoded combination of user and password, which is far less
than a 76 char password, quite a blanket statement to just say its secure
enough.
i would suggest that the workaround is to use httpclient instead of
HTTPURLConnection, but I assume this would have been done if it was something
straightforward to do.
> exception from mvn deploy, fails when the username and password are too
> secure/long
> -----------------------------------------------------------------------------------
>
> Key: MNG-5253
> URL: https://jira.codehaus.org/browse/MNG-5253
> Project: Maven 2 & 3
> Issue Type: Bug
> Affects Versions: 3.0.3
> Reporter: Scott Clasen
> Attachments: pom.xml, settings.xml
>
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira