GNU bug report logs - #10478
24.0.50; url-http-parse-headers can silently drop the response when handling BASIC AUTHENTICATION

Previous Next

Package: emacs;

Reported by: Jerry Asher <jerry.asher <at> gmail.com>

Date: Wed, 11 Jan 2012 07:11:01 UTC

Severity: normal

Tags: confirmed, moreinfo

Found in version 24.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: David Engster <deng <at> randomsample.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Jerry Asher <jerry.asher <at> gmail.com>, 10478 <at> debbugs.gnu.org
Subject: Re: bug#10478: 24.0.50;
 url-http-parse-headers can silently drop the response when handling
 BASIC AUTHENTICATION
Date: Sat, 03 Jun 2017 12:41:47 +0200
Lars Ingebrigtsen writes:
> Jerry Asher <jerry.asher <at> gmail.com> writes:
>
>> When making a GET request again their simplest api, users/me that
>> returns information about the logged in user, url-retrieve-synchronously
>> will return the wrong buffer.
>>
>> This seems to be traceable to url-http-parse-headers handling the "401
>> Basic: Access denied message by" calling url-http-handle-authentication
>> which prompts the user for a name and password and calls
>> url-retrieve-internal to retry the request.
>
> I can confirm that this bug is still present in Emacs 25.  It returns
> the buffer with the 401 message, not the buffer with the response...

I just stumpled upon this. Oh my, this stuff is straight from callback
hell. Lars, how's your 'url' rewrite going...?

I stared at this for hours, but was unable to come up with anything
better than what Jerry has suggested. So if nobody objects, I'd like to
commit this.

Jerry, do you have papers with the FSF signed? I'm not sure if the
resulting patch will fit in the 'trivial patch' category.

-David




This bug report was last modified 5 years and 246 days ago.

Previous Next


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