From unknown Sun Jun 15 08:43:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12069: 24.1.50; [url] bugs in authenticated proxy handling Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jul 2012 17:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12069@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.134340945516117 (code B ref -1); Fri, 27 Jul 2012 17:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jul 2012 17:17:35 +0000 Received: from localhost ([127.0.0.1]:44373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SuoAQ-0004Bt-ME for submit@debbugs.gnu.org; Fri, 27 Jul 2012 13:17:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35229) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SuoAN-0004Bm-Py for submit@debbugs.gnu.org; Fri, 27 Jul 2012 13:17:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Suo3Z-0003ff-KH for submit@debbugs.gnu.org; Fri, 27 Jul 2012 13:10:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:34614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suo3Z-0003fZ-Gk for submit@debbugs.gnu.org; Fri, 27 Jul 2012 13:10:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suo3X-0004d7-ST for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 13:10:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Suo3V-0003eT-GX for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 13:10:27 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:44161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suo3V-0003e4-4V for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 13:10:25 -0400 Received: by pbbrp2 with SMTP id rp2so5880521pbb.0 for ; Fri, 27 Jul 2012 10:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=RmrzWvVoCo/QG88tiGBAKtcJxdcLkMrkEvmem0h94yE=; b=tyt/W6/oyvYalOj5iWFuGSuSMzw48xRBA0D0v28TWFJ/Ji7CsSsq5nJoxyt3e5sL2E 33yAb82fiIjj3Dph479xdaFYA9RC1B54IJqHnYMj7aVXqdamigcF1PKpEEDe4f7yIKNR 5f6hvWofj1CqN8NWRPZxSP1z/cQ1Y2WIk1ZBJ6PQ9ROpDO1PYNA/tJTFD1GP3cZgyFXr yPvc/clzQsB2i3oQCx+SMsiLV7q8U7z6TylyNM/vN/+IElg8OLQHhtoNBUG2M9p9yDSt 4AJJPmZubPGP3MEc8Oe7z1u8OKn7wxfxHnb4yLNytvEuYiJRTJGo6c9/DEJc5uuEdnT5 Ozhg== Received: by 10.68.238.68 with SMTP id vi4mr15252177pbc.123.1343409024321; Fri, 27 Jul 2012 10:10:24 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.106.197]) by mx.google.com with ESMTPS id ka5sm2246343pbb.37.2012.07.27.10.10.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 10:10:23 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 3BDB729F6; Sat, 28 Jul 2012 01:09:02 +0800 (MYT) From: Jason Rumney Date: Sat, 28 Jul 2012 01:09:02 +0800 Message-ID: <87d33hyvv5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --=-=-= Content-Type: text/plain I tried to use list-packages from behind a proxy which requires authentication. I was prompted for my user name and password for the proxy, and after entering it, the package list download failed. Trying again, I was prompted for the password again, and the failure repeated. Applying the patch below, I am only prompted the first time for my password, and the second and subsequent attempts do not fail. I am not very familiar with the url package, so I am not sure this is the correct fix for the issue of cached proxy passwords not being used. But before the patch I saw multiple identical copies of my username/password for the proxy stored in url-http-proxy-basic-auth-storage, while after the patch only one copy is stored, and subsequent attempts do not prompt for the password, so it seems correct. There is still a bug occuring on the first attempt though. It seems that two buffers are created on that attempt - one containing the 407 response requesting proxy authentication, and another containing the subsequent response from the target server after the proxy credentials have been supplied. The buffer returned to the package code is the first one, but it needs the second. I'm not sure whether this is a bug in url, or in the way package.el uses it, and edebug seemed to have problems with parts of the url package, so I could not investigate in detail. --=-=-= Content-Type: text/plain Content-Disposition: inline Content-Description: Possible patch === modified file 'lisp/url/url-http.el' *** lisp/url/url-http.el 2012-07-11 23:13:41 +0000 --- lisp/url/url-http.el 2012-07-27 16:49:07 +0000 *************** *** 239,245 **** nil (let ((url-basic-auth-storage 'url-http-proxy-basic-auth-storage)) ! (url-get-authentication url-http-target-url nil 'any nil)))) (real-fname (url-filename url-http-target-url)) (host (url-host url-http-target-url)) (auth (if (cdr-safe (assoc "Authorization" url-http-extra-headers)) --- 239,245 ---- nil (let ((url-basic-auth-storage 'url-http-proxy-basic-auth-storage)) ! (url-get-authentication url-http-proxy nil 'any nil)))) (real-fname (url-filename url-http-target-url)) (host (url-host url-http-target-url)) (auth (if (cdr-safe (assoc "Authorization" url-http-extra-headers)) --=-=-= Content-Type: text/plain In GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-07-18 on wanchan Bzr revision: 109147 michael.albinus@gmx.de-20120718150436-jgt5g2rpxej1tfhd Windowing system distributor `The X.Org Foundation', version 11.0.11202902 Important settings: value of $LANG: en_NZ.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t show-paren-mode: t recentf-mode: t display-time-mode: t cua-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: q q C-k s C-x C-f / l i s u r u r - h t u r l - h t t p - p r o x y C-x C-s C-x v = w w Recent messages: Saving file /home/jasonr/.newsrc... Wrote /home/jasonr/.newsrc Saving /home/jasonr/.newsrc.eld... Saving file /home/jasonr/.newsrc.eld... Wrote /home/jasonr/.newsrc.eld Saving /home/jasonr/.newsrc.eld...done Making completion list... [2 times] Saving file /home/jasonr/repo/emacs/trunk/lisp/url/url-http.el... Wrote /home/jasonr/repo/emacs/trunk/lisp/url/url-http.el Finding changes in /home/jasonr/repo/emacs/trunk/lisp/url/url-http.el...done byte-code: Beginning of buffer [2 times] Load-path shadows: None found. Features: (shadow emacsbug shell grep compile whitespace vc-annotate gnus-dup gnus-fun semantic/tag-write add-log log-view pcvs-util vc ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher semantic/bovine semantic/db-file cedet-files semantic/bovine/c semantic/decorate/include semantic/db-find semantic/db-ref semantic/decorate/mode semantic/decorate semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep cc-langs cl cl-lib cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs multi-isearch vc-bzr help-mode diff-mode thingatpt flyspell ispell semantic/ia pulse semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn mule-util shr-color color shr browse-url sort smiley gnus-cite flow-fill mm-archive mail-extr gnus-async gnus-bcklg qp gnus-ml disp-table nndraft nnmh nnfolder utf-7 epa-file epa derived epg network-stream auth-source starttls nnimap parse-time tls utf7 netrc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime password-cache dig mailcap nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win debbugs-autoloads minimap-autoloads package jka-compr org-mouse org-w3m org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-id org-gnus org-bbdb paren recentf tree-widget gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit time cua-base cus-start cus-load semantic/db-mode semantic/db gv eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw eieio mode-local cedet remember org-remember org-datetree org byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode format-spec cal-menu easymenu calendar cal-loaddefs server time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=-=-=-- From unknown Sun Jun 15 08:43:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jason Rumney Subject: bug#12069: closed (Re: bug#12069: 24.1.50; [url] bugs in authenticated proxy handling) Message-ID: References: <87k3x5o3kx.fsf@gnu.org> <87d33hyvv5.fsf@gnu.org> X-Gnu-PR-Message: they-closed 12069 X-Gnu-PR-Package: emacs Reply-To: 12069@debbugs.gnu.org Date: Sat, 11 Aug 2012 15:32:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1344699122-8349-1" This is a multi-part message in MIME format... ------------=_1344699122-8349-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12069: 24.1.50; [url] bugs in authenticated proxy handling which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 12069@debbugs.gnu.org. --=20 12069: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12069 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1344699122-8349-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12069-done) by debbugs.gnu.org; 11 Aug 2012 15:31:45 +0000 Received: from localhost ([127.0.0.1]:49583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0DfE-0002A1-OQ for submit@debbugs.gnu.org; Sat, 11 Aug 2012 11:31:45 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:45387) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0DfD-00029r-8Y for 12069-done@debbugs.gnu.org; Sat, 11 Aug 2012 11:31:43 -0400 Received: by pbbrr4 with SMTP id rr4so5554496pbb.3 for <12069-done@debbugs.gnu.org>; Sat, 11 Aug 2012 08:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Qx8vftwWaVi0TTBTNO0znK6Hno1ZbLLJeeNjL9+ZdpM=; b=SsjA1i/ltQGZmB9PNieD8BkjnT3P6s0huTCUyhS1dTTKgp83tDwkQZL8rZzq5hqedi hKrpP9rKDMt+HzFwr3XYno94hOLCop0+MVNRk78DUVMG054BFqa9WimUUkiUWCrQ6KvP nPbf7barHdgyHWr6tyzPuG2OxHRgyxKdcSpUk3GpwR2IWa2/wModSyCX2NR76IMHX8Q5 dvfEvjK9B660q+EIXPUUIk3Hdp4s+L/kSm2TZnMklylfmXxCuGksa1Wp3XOCUjsb38w0 twDQZmqoD82GwVLBem9sM4wTykcsvr5X8ZtbqnENMumFeqblSFtRBDCxtIBKIXbGzUgo a7mw== Received: by 10.66.88.40 with SMTP id bd8mr14072368pab.36.1344698600394; Sat, 11 Aug 2012 08:23:20 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.28.25]) by mx.google.com with ESMTPS id st6sm1552099pbc.58.2012.08.11.08.23.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 11 Aug 2012 08:23:19 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 0A0C61C43; Sat, 11 Aug 2012 23:23:10 +0800 (MYT) From: Jason Rumney To: 12069-done@debbugs.gnu.org Subject: Re: bug#12069: 24.1.50; [url] bugs in authenticated proxy handling References: <87d33hyvv5.fsf@gnu.org> Date: Sat, 11 Aug 2012 23:23:10 +0800 In-Reply-To: <87d33hyvv5.fsf@gnu.org> (Jason Rumney's message of "Sat, 28 Jul 2012 01:09:02 +0800") Message-ID: <87k3x5o3kx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12069-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) I have applied the patch to trunk, as there were no objections. ------------=_1344699122-8349-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Jul 2012 17:17:35 +0000 Received: from localhost ([127.0.0.1]:44373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SuoAQ-0004Bt-ME for submit@debbugs.gnu.org; Fri, 27 Jul 2012 13:17:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35229) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SuoAN-0004Bm-Py for submit@debbugs.gnu.org; Fri, 27 Jul 2012 13:17:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Suo3Z-0003ff-KH for submit@debbugs.gnu.org; Fri, 27 Jul 2012 13:10:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:34614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suo3Z-0003fZ-Gk for submit@debbugs.gnu.org; Fri, 27 Jul 2012 13:10:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suo3X-0004d7-ST for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 13:10:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Suo3V-0003eT-GX for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 13:10:27 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:44161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suo3V-0003e4-4V for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 13:10:25 -0400 Received: by pbbrp2 with SMTP id rp2so5880521pbb.0 for ; Fri, 27 Jul 2012 10:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=RmrzWvVoCo/QG88tiGBAKtcJxdcLkMrkEvmem0h94yE=; b=tyt/W6/oyvYalOj5iWFuGSuSMzw48xRBA0D0v28TWFJ/Ji7CsSsq5nJoxyt3e5sL2E 33yAb82fiIjj3Dph479xdaFYA9RC1B54IJqHnYMj7aVXqdamigcF1PKpEEDe4f7yIKNR 5f6hvWofj1CqN8NWRPZxSP1z/cQ1Y2WIk1ZBJ6PQ9ROpDO1PYNA/tJTFD1GP3cZgyFXr yPvc/clzQsB2i3oQCx+SMsiLV7q8U7z6TylyNM/vN/+IElg8OLQHhtoNBUG2M9p9yDSt 4AJJPmZubPGP3MEc8Oe7z1u8OKn7wxfxHnb4yLNytvEuYiJRTJGo6c9/DEJc5uuEdnT5 Ozhg== Received: by 10.68.238.68 with SMTP id vi4mr15252177pbc.123.1343409024321; Fri, 27 Jul 2012 10:10:24 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.106.197]) by mx.google.com with ESMTPS id ka5sm2246343pbb.37.2012.07.27.10.10.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 10:10:23 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 3BDB729F6; Sat, 28 Jul 2012 01:09:02 +0800 (MYT) From: Jason Rumney To: bug-gnu-emacs@gnu.org Subject: 24.1.50; [url] bugs in authenticated proxy handling Date: Sat, 28 Jul 2012 01:09:02 +0800 Message-ID: <87d33hyvv5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --=-=-= Content-Type: text/plain I tried to use list-packages from behind a proxy which requires authentication. I was prompted for my user name and password for the proxy, and after entering it, the package list download failed. Trying again, I was prompted for the password again, and the failure repeated. Applying the patch below, I am only prompted the first time for my password, and the second and subsequent attempts do not fail. I am not very familiar with the url package, so I am not sure this is the correct fix for the issue of cached proxy passwords not being used. But before the patch I saw multiple identical copies of my username/password for the proxy stored in url-http-proxy-basic-auth-storage, while after the patch only one copy is stored, and subsequent attempts do not prompt for the password, so it seems correct. There is still a bug occuring on the first attempt though. It seems that two buffers are created on that attempt - one containing the 407 response requesting proxy authentication, and another containing the subsequent response from the target server after the proxy credentials have been supplied. The buffer returned to the package code is the first one, but it needs the second. I'm not sure whether this is a bug in url, or in the way package.el uses it, and edebug seemed to have problems with parts of the url package, so I could not investigate in detail. --=-=-= Content-Type: text/plain Content-Disposition: inline Content-Description: Possible patch === modified file 'lisp/url/url-http.el' *** lisp/url/url-http.el 2012-07-11 23:13:41 +0000 --- lisp/url/url-http.el 2012-07-27 16:49:07 +0000 *************** *** 239,245 **** nil (let ((url-basic-auth-storage 'url-http-proxy-basic-auth-storage)) ! (url-get-authentication url-http-target-url nil 'any nil)))) (real-fname (url-filename url-http-target-url)) (host (url-host url-http-target-url)) (auth (if (cdr-safe (assoc "Authorization" url-http-extra-headers)) --- 239,245 ---- nil (let ((url-basic-auth-storage 'url-http-proxy-basic-auth-storage)) ! (url-get-authentication url-http-proxy nil 'any nil)))) (real-fname (url-filename url-http-target-url)) (host (url-host url-http-target-url)) (auth (if (cdr-safe (assoc "Authorization" url-http-extra-headers)) --=-=-= Content-Type: text/plain In GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-07-18 on wanchan Bzr revision: 109147 michael.albinus@gmx.de-20120718150436-jgt5g2rpxej1tfhd Windowing system distributor `The X.Org Foundation', version 11.0.11202902 Important settings: value of $LANG: en_NZ.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t show-paren-mode: t recentf-mode: t display-time-mode: t cua-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: q q C-k s C-x C-f / l i s u r u r - h t u r l - h t t p - p r o x y C-x C-s C-x v = w w Recent messages: Saving file /home/jasonr/.newsrc... Wrote /home/jasonr/.newsrc Saving /home/jasonr/.newsrc.eld... Saving file /home/jasonr/.newsrc.eld... Wrote /home/jasonr/.newsrc.eld Saving /home/jasonr/.newsrc.eld...done Making completion list... [2 times] Saving file /home/jasonr/repo/emacs/trunk/lisp/url/url-http.el... Wrote /home/jasonr/repo/emacs/trunk/lisp/url/url-http.el Finding changes in /home/jasonr/repo/emacs/trunk/lisp/url/url-http.el...done byte-code: Beginning of buffer [2 times] Load-path shadows: None found. Features: (shadow emacsbug shell grep compile whitespace vc-annotate gnus-dup gnus-fun semantic/tag-write add-log log-view pcvs-util vc ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher semantic/bovine semantic/db-file cedet-files semantic/bovine/c semantic/decorate/include semantic/db-find semantic/db-ref semantic/decorate/mode semantic/decorate semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep cc-langs cl cl-lib cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs multi-isearch vc-bzr help-mode diff-mode thingatpt flyspell ispell semantic/ia pulse semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn mule-util shr-color color shr browse-url sort smiley gnus-cite flow-fill mm-archive mail-extr gnus-async gnus-bcklg qp gnus-ml disp-table nndraft nnmh nnfolder utf-7 epa-file epa derived epg network-stream auth-source starttls nnimap parse-time tls utf7 netrc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime password-cache dig mailcap nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win debbugs-autoloads minimap-autoloads package jka-compr org-mouse org-w3m org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-id org-gnus org-bbdb paren recentf tree-widget gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit time cua-base cus-start cus-load semantic/db-mode semantic/db gv eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw eieio mode-local cedet remember org-remember org-datetree org byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode format-spec cal-menu easymenu calendar cal-loaddefs server time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=-=-=-- ------------=_1344699122-8349-1--