unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thomas Fitzsimmons <fitzsim@fitzsim.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: "William Xu" <william.xwl@gmail.com>,
	43566@debbugs.gnu.org, "Jeffrey Haug" <jthaug@gmail.com>,
	"Domingo Gómez Pérez" <domingo.gomez@unican.es>
Subject: bug#43566: 27.1; url-http and excorporate does not authenticate
Date: Fri, 04 Dec 2020 18:29:20 -0500	[thread overview]
Message-ID: <m3o8j9m9pr.fsf@fitzsim.org> (raw)
In-Reply-To: <87v9g2ozh1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 25 Sep 2020 13:41:30 +0200")

Hi,

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Domingo Gómez Pérez <domingo.gomez@unican.es> writes:
>
>>> Is wget using NTLM authentication, though?  And how have you set up
>>> url.el to use NTLM?
>>
>> Dear Lars Ingebrigtsen,
>>
>> First of all, thanks for your time and help.
>>
>> I would say so, because in the terminal it reads "Autenticación
>> seleccionada: NTLM" (sorry, it is in spanish but I think the meaning is clear).
>
> Thanks for checking.
>
> I'm absolutely completely unfamiliar with NTLM (I assume that's a
> Windows-only thing?), so somebody else will have to try debugging this.

It turns out that this is a regression in Emacs 27.1 introduced by the
fix for bug 27022:

   https://debbugs.gnu.org/27022

The NTLM protocol requires a three step handshake with the server, where
handshake information is passed from the client to the server via
Authorization headers.  I'm not sure if the 27022 scenario would result
in url-http-ntlm inflooping too; if it would, then the obvious
fix-of-the-fix would probably be wrong (i.e., to disable the check when
NTLM is present in the authorization string).

It also turns out that another user found the regression and filed a bug
report with a workaround a month ago:

   https://debbugs.gnu.org/44439

(From now on I'll search for "excorporate" using debbugs-gnu-search
instead of just scanning subject lines.)

I've merged bug#44439 and another report of the same problem, bug#44195,
into this one.

I no longer use the NTLM mode myself, but I did manage to independently
figure out the issue by implementing an NTLM server in elisp.  I'm going
to add it to the test suite, since otherwise it's not feasible for Emacs
maintainers to test ntlm.el properly (which is what happened in Emacs
27.1).  I can test inflooping against it too once I have the changes
ready.

Thomas





  reply	other threads:[~2020-12-04 23:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-22 11:20 bug#43566: 27.1; url-http and excorporate does not authenticate Domingo Gómez Pérez
2020-09-24 15:22 ` Lars Ingebrigtsen
2020-09-25 11:38   ` Domingo Gómez Pérez
2020-09-25 11:41     ` Lars Ingebrigtsen
2020-12-04 23:29       ` Thomas Fitzsimmons [this message]
2020-12-05 12:40         ` William Xu
2020-12-06 13:14         ` Lars Ingebrigtsen
2021-01-31 15:03           ` Thomas Fitzsimmons
2021-01-31 15:13             ` Eli Zaretskii
2021-02-01  8:43             ` Lars Ingebrigtsen
2021-02-01 13:28               ` Thomas Fitzsimmons
2021-02-19  1:58                 ` Thomas Fitzsimmons
2021-02-19 12:31                   ` Lars Ingebrigtsen
2021-02-19 14:18                     ` Thomas Fitzsimmons
2021-02-19 15:00                       ` Lars Ingebrigtsen
2021-02-19 16:35                         ` Thomas Fitzsimmons
2021-02-19 22:26                           ` Thomas Fitzsimmons
2020-09-29 22:19   ` Thomas Fitzsimmons
2020-09-29 22:42 ` Thomas Fitzsimmons
2020-09-30 17:00   ` Domingo Gómez Pérez
     [not found] <a84cfa50-5e21-4d75-a0bd-c6dc4d8763bc@email.android.com>
2020-09-26 13:15 ` Lars Ingebrigtsen

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=m3o8j9m9pr.fsf@fitzsim.org \
    --to=fitzsim@fitzsim.org \
    --cc=43566@debbugs.gnu.org \
    --cc=domingo.gomez@unican.es \
    --cc=jthaug@gmail.com \
    --cc=larsi@gnus.org \
    --cc=william.xwl@gmail.com \
    /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).