From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <87y3t9xsic.fsf@engster.org> References: <8737uqyzam.fsf@gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1496486544 2612 195.159.176.226 (3 Jun 2017 10:42:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2017 10:42:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Jerry Asher , 10478@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 03 12:42:20 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dH6Vc-0000G7-Rn for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jun 2017 12:42:16 +0200 Original-Received: from localhost ([::1]:53233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dH6Vi-0003i9-40 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jun 2017 06:42:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dH6VT-0003hG-6m for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 06:42:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dH6VP-0006OJ-9K for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 06:42:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dH6VO-0006O7-Pm for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 06:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dH6VO-0007wi-Jb for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2017 06:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2017 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10478 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 10478-submit@debbugs.gnu.org id=B10478.149648651830509 (code B ref 10478); Sat, 03 Jun 2017 10:42:02 +0000 Original-Received: (at 10478) by debbugs.gnu.org; 3 Jun 2017 10:41:58 +0000 Original-Received: from localhost ([127.0.0.1]:52410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dH6VJ-0007w0-Pd for submit@debbugs.gnu.org; Sat, 03 Jun 2017 06:41:57 -0400 Original-Received: from randomsample.de ([5.45.97.173]:37701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dH6VH-0007vq-Ff for 10478@debbugs.gnu.org; Sat, 03 Jun 2017 06:41:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=Xk/Nnz3BZ+9lEIcAG63CkvNrq0kgYg+fIttzcYO1DWA=; b=KBzus9bo6yDbIXVy12tTd1fNZ4V3kS+XuQrXgr0BBHS4ZTtjA0v2p8HB/613baAV84sYeAB8alPEh7suONyZ1b7xSeyugiSAIyVPbmb4ph+afPajawmuxdqd4MnSEHpO; Original-Received: from ip4d1681d2.dynamic.kabel-deutschland.de ([77.22.129.210] helo=isaac) by randomsample.de with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1dH6VF-00030Z-4Q; Sat, 03 Jun 2017 12:41:53 +0200 In-Reply-To: <8737uqyzam.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 25 Dec 2015 22:49:05 +0100") 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: 208.118.235.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:133215 Archived-At: Lars Ingebrigtsen writes: > Jerry Asher 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