From: Lars Ingebrigtsen <larsi@gnus.org>
To: Joshua Bachmeier <joshua@bachmeier.cc>
Cc: 36619@debbugs.gnu.org
Subject: bug#36619: 26.2; url-auth: Base64 encoded Basic auth password truncated
Date: Sat, 13 Jul 2019 01:28:38 +0200 [thread overview]
Message-ID: <m3sgrasuhl.fsf@gnus.org> (raw)
In-Reply-To: <87k1cn3you.fsf@notebook.bachmeier.cc> (Joshua Bachmeier's message of "Fri, 12 Jul 2019 20:07:36 +0200")
Joshua Bachmeier <joshua@bachmeier.cc> writes:
> My password (retrived by the url package with `auth-source') is rather
> long. When encoding it in base64 (using `base64-encode-string') in
> `url/url-auth.el:123' it is split into multiple lines (this behaviour is
> specified in the documentation of `base64-encode-string'. However, since
> the base64-string is then simply put into the HTTP header, everything
> after the first newline is lost, the password is effectively truncated.
This should now be fixed on the Emacs trunk.
> `base64-encode-string' provides an optional argument to supress line
> splitting. I guess this should be used here (and propably in many
> other places).
I went through the Emacs codebase, and the only other place this seemed
to be an issue was in nnimap.el, and explains a mysterious bug report
about truncated auth.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2019-07-12 23:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-12 18:07 bug#36619: 26.2; url-auth: Base64 encoded Basic auth password truncated Joshua Bachmeier
2019-07-12 23:28 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3sgrasuhl.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=36619@debbugs.gnu.org \
--cc=joshua@bachmeier.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).