gnustavo / JIRA-REST

Thin wrapper around Jira's REST API
https://metacpan.org/release/JIRA-REST/
17 stars 17 forks source link

Avoid split mime64 string into multiple lines #23

Closed ribugent closed 5 years ago

ribugent commented 5 years ago

Recently I ran into an issue with jira rest api authentiaction.

After some investigations, I noticed encode_base64 of the user and password introduces a new line character by default https://metacpan.org/pod/MIME::Base64#encode_base64(-$bytes-), and this breaks the authentication.

Hope this helps

gnustavo commented 5 years ago

Hi Gerard. Good catch! I guess you have a huge password to have noticed the problem. :-)

I'm going to merge it so that this fix will be included in the next release.

Thank you!