GNU bug report logs -
#72526
31.0.50; [PATCH] Fix url-basic-auth secret search when passing username and/or port
Previous Next
Reported by: Björn Bidar <bjorn.bidar <at> thaodan.de>
Date: Thu, 8 Aug 2024 15:03:01 UTC
Severity: normal
Tags: patch
Found in version 31.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #72 received at submit <at> debbugs.gnu.org (full text, mbox):
Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:
Hi Björn,
> --- a/etc/NEWS
> +++ b/etc/NEWS
> @@ -48,6 +48,31 @@ incorrectly in rare cases.
> This allows to specify the directory where the user unit file for
> systemd is installed; default is '${prefix}/usr/lib/systemd/user'.
>
> +
> +* Incompatible Changes in Emacs 31.1
> +
> +** url-basic-auth no longer amends ports when search for credentials
> +url-basic-auth used to amend the port to the server when searching
> +for credentials in auth-source.
> +This happened so auth-source would partially emulate the classic netrc
> +format where there is no port field, i.e. as in Curl.
> +
> +The port has to be removed from the server. If the previously
> +specified port differs from the one specified in the port field
> +then this has to be adjusted too.
> +
> +So for example:
> +machine www.example.com:443 port https login foo password bar
> +Becomes:
> +machine www.example.com port https login foo password bar
> +
> +However in this example:
> +machine www.example.com:800 port https login foo password bar
> +The port has to removed and the https has to replaced with 800:
> +machine www.example.com port 800 login foo password bar
> +
> +(443 is the default port for HTTPS connections.)
To my taste, it is too long. We don't discuss any reasoning here, just
document how the format has changed.
Best regards, Michael.
This bug report was last modified 77 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.