GNU bug report logs - #56972
29.0.50; nntp-send-authinfo error because netrc-parse can't handle multibytes

Previous Next

Package: emacs;

Reported by: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>

Date: Thu, 4 Aug 2022 12:06:01 UTC

Severity: normal

Tags: moreinfo

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56972 in the body.
You can then email your comments to 56972 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#56972; Package emacs. (Thu, 04 Aug 2022 12:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Brubeck Unhammer <unhammer <at> fsfe.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 04 Aug 2022 12:06:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; nntp-send-authinfo error because netrc-parse can't handle
 multibytes
Date: Thu, 04 Aug 2022 14:04:54 +0200
nntp-send-authinfo uses netrc-parse to parse ~/.authinfo.gpg, but
netrc-parse (unlike auth-source) uses base64-encode-string which as of
https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-12/msg01599.html
throws an error if it sees a multibyte. So if there's a multibyte
somewhere in the netrc file, we get this on trying to connect with nntp

Unable to open server gmane due to: Multibyte character in data for base64 encoding

(even if we don't use any auth info for connecting).

I'm guessing nntp-send-authinfo could be changed to using
auth-source-netrc-parse, though I don't actually use authinfo for
connecting to nntp so I have no way to test that use-case.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56972; Package emacs. (Thu, 04 Aug 2022 13:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 56972 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
Cc: 56972 <at> debbugs.gnu.org
Subject: Re: bug#56972: 29.0.50; nntp-send-authinfo error because
 netrc-parse can't handle multibytes
Date: Thu, 04 Aug 2022 15:38:39 +0200
Kevin Brubeck Unhammer <unhammer <at> fsfe.org> writes:

> I'm guessing nntp-send-authinfo could be changed to using
> auth-source-netrc-parse, though I don't actually use authinfo for
> connecting to nntp so I have no way to test that use-case.

Yes -- there's no longer any reason to parse the authinfo file twice
this way now that `nntp-authinfo-file' has been removed, so I've
adjusted the code to just use auth-source in Emacs 29.  Can you check
that this really fixes the issue you were seeing?





Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 04 Aug 2022 13:39:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56972; Package emacs. (Fri, 05 Aug 2022 08:10:02 GMT) Full text and rfc822 format available.

Message #13 received at 56972 <at> debbugs.gnu.org (full text, mbox):

From: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 56972 <at> debbugs.gnu.org
Subject: Re: bug#56972: 29.0.50; nntp-send-authinfo error because
 netrc-parse can't handle multibytes
Date: Fri, 05 Aug 2022 10:09:04 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> čálii:

> Yes -- there's no longer any reason to parse the authinfo file twice
> this way now that `nntp-authinfo-file' has been removed, so I've
> adjusted the code to just use auth-source in Emacs 29.  Can you check
> that this really fixes the issue you were seeing?

That does seem to resolve the issue for me – thank you :-)

best regards,
Kevin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56972; Package emacs. (Fri, 05 Aug 2022 11:59:02 GMT) Full text and rfc822 format available.

Message #16 received at 56972 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
Cc: 56972 <at> debbugs.gnu.org
Subject: Re: bug#56972: 29.0.50; nntp-send-authinfo error because
 netrc-parse can't handle multibytes
Date: Fri, 05 Aug 2022 13:58:44 +0200
Kevin Brubeck Unhammer <unhammer <at> fsfe.org> writes:

> That does seem to resolve the issue for me – thank you :-)

Thanks for checking; closing this bug report, then.





bug marked as fixed in version 29.1, send any further explanations to 56972 <at> debbugs.gnu.org and Kevin Brubeck Unhammer <unhammer <at> fsfe.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Aug 2022 12:00:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 03 Sep 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.