From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36619: 26.2; url-auth: Base64 encoded Basic auth password truncated Date: Sat, 13 Jul 2019 01:28:38 +0200 Message-ID: References: <87k1cn3you.fsf@notebook.bachmeier.cc> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="144122"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36619@debbugs.gnu.org To: Joshua Bachmeier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 13 01:29:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm4yS-000bLO-Cb for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jul 2019 01:29:08 +0200 Original-Received: from localhost ([::1]:52764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm4yQ-0005k9-C8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 19:29:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50873) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm4yN-0005jI-DJ for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 19:29:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hm4yM-0002m5-6F for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 19:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60346) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hm4yM-0002lx-2X for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 19:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hm4yL-0002eL-TI for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 19:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2019 23:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36619 X-GNU-PR-Package: emacs Original-Received: via spool by 36619-submit@debbugs.gnu.org id=B36619.156297412610165 (code B ref 36619); Fri, 12 Jul 2019 23:29:01 +0000 Original-Received: (at 36619) by debbugs.gnu.org; 12 Jul 2019 23:28:46 +0000 Original-Received: from localhost ([127.0.0.1]:40934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm4y6-0002ds-2b for submit@debbugs.gnu.org; Fri, 12 Jul 2019 19:28:46 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:51196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm4y4-0002dj-C4 for 36619@debbugs.gnu.org; Fri, 12 Jul 2019 19:28:44 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm4xz-00030p-2g; Sat, 13 Jul 2019 01:28:42 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEVtRhsIAgAyHwoUCAIk FAdKLhHdsXOm1R+OAAACc0lEQVQ4jUWTTZLjIAyF1Zl29hQ+QBrDrBuL2XcAz9pxTK9dUxXuf4R5 wk5alYp/PovHExLlMp/rdlU6lplKKYtBWJsJz7U+vFLRUQNO3ttEeK71pJQaAboCtnQnszAyzrW+ C5gbwF+Hv4EcVqp3gABADcjvTrLSNgi4bLV2ZS7GFRF3WGlLAFruunmeW5IlbLb+8wIm+aS9BzEk Eu8MoOJ3bWvBScyZIFFX9m1bL5BzIskfGCk+OICHeLc5NfBIIWjFTX3rSnGrZOCrE4fMGmAXQVEO sIYpXjX7KCJUUMQcudmLU0kcrmOpsuGCIhrJeGTjnGHmXsq2QQNgkNKOxRWksD6cFCyVAdbRzXNJ Oam4OylLzoHqZtvZrfzRr00EwMJ5fQQ3l86kP2/hfdmd4Axh8DReKFqvL2/2vnw/AWq1RrfEpDQl 2y+X3WIDyThrvOLOmNG6ZnGBdTr1k8vG89jRPGWzi2BbdNfRBev5k86daU4aSPTRBxPsXX1R7Qaf dycLDPoeGRPx5bx1KLM76phJ9XnKcaLzmWhLHFu5ZFeKw2wX6V+cGQ1NpInrEGnQ0l0Sb6E5kQyN ZaBz2cEvPT0BC9Dh6wlGaQITLYUcF/UDVPgNEdEIaC407gHuSssd6k6hXFlafQc33ErfwEcwiZWW Dj6AbiLYVb4q1RPRC/wFEIMBfdu7cc/5QA9/Qn1NpNoIsA70BL2oA0hoGQ8BV3m6ENknQFqbGzm7 PEln/YBPAIxtt09Ufi2FI5TZ2ycNnbAD2CpOyv6K4QB6LBhxOawjbk8QzTGupV3LjVjCa9nJYops CoE3ABoXzynkjJblPbz6DzPN7B9lIYn+AAAAAElFTkSuQmCC In-Reply-To: <87k1cn3you.fsf@notebook.bachmeier.cc> (Joshua Bachmeier's message of "Fri, 12 Jul 2019 20:07:36 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162808 Archived-At: Joshua Bachmeier 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