From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#11981: 24.1.50; url-http-parse-headers should not disable file name handlers since it breaks auth-source Date: Thu, 19 Jul 2012 08:35:04 +0200 Message-ID: <87394otg13.fsf@gmx.de> References: <87eho8didj.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342679768 1381 80.91.229.3 (19 Jul 2012 06:36:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2012 06:36:08 +0000 (UTC) Cc: 11981@debbugs.gnu.org To: David Engster Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 08:36:06 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SrkLD-0007Hr-KS for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 08:36:03 +0200 Original-Received: from localhost ([::1]:50009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrkLC-0006uY-Va for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 02:36:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrkL6-0006l7-Lu for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:36:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrkL2-00073r-NU for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:35:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrkL2-00073l-G8 for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:35:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SrkQz-000070-Lr for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jul 2012 06:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11981 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11981-submit@debbugs.gnu.org id=B11981.1342680082368 (code B ref 11981); Thu, 19 Jul 2012 06:42:01 +0000 Original-Received: (at 11981) by debbugs.gnu.org; 19 Jul 2012 06:41:22 +0000 Original-Received: from localhost ([127.0.0.1]:49348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrkQL-00005s-HJ for submit@debbugs.gnu.org; Thu, 19 Jul 2012 02:41:21 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:39374) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SrkQI-00005j-Fp for 11981@debbugs.gnu.org; Thu, 19 Jul 2012 02:41:20 -0400 Original-Received: (qmail invoked by alias); 19 Jul 2012 06:35:06 -0000 Original-Received: from p57BB9582.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.149.130] by mail.gmx.net (mp020) with SMTP; 19 Jul 2012 08:35:06 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/qVqRlwd7qKscjPcxz7xIP9q6YYXvXDSwnpGa3Pn iOj5FgOES2BHSF In-Reply-To: <87eho8didj.fsf@engster.org> (David Engster's message of "Wed, 18 Jul 2012 20:38:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62142 Archived-At: David Engster writes: > However, this workaraound assumes that everything that gets afterwards > in the `let'-section does not depend on file name handlers. However, > this is not the case: `url-http-handle-authentication' is called which > in turn calls the auth-source package. This package however supports > encrypted authinfo files which have to be automatically decrypted > through `auto-encryption-mode'. This, of course, works through file name > handlers. Does it work, if Tramp is disabled instead? --8<---------------cut here---------------start------------->8--- *** /usr/local/src/emacs/lisp/url/url-http.el.~109155~ 2012-07-19 08:29:53.339768264 +0200 --- /usr/local/src/emacs/lisp/url/url-http.el 2012-07-19 08:28:26.428326961 +0200 *************** *** 510,518 **** ;; other status symbols: jewelry and luxury cars (status-symbol (cadr (assq url-http-response-status url-http-codes))) ;; The filename part of a URL could be in remote file syntax, ! ;; see Bug#6717 for an example. We disable file name ! ;; handlers, therefore. ! (file-name-handler-alist nil)) (setq class (/ url-http-response-status 100)) (url-http-debug "Parsed HTTP headers: class=%d status=%d" class url-http-response-status) (when (url-use-cookies url-http-target-url) --- 510,517 ---- ;; other status symbols: jewelry and luxury cars (status-symbol (cadr (assq url-http-response-status url-http-codes))) ;; The filename part of a URL could be in remote file syntax, ! ;; see Bug#6717 for an example. We disable Tramp, therefore. ! (tramp-mode nil)) (setq class (/ url-http-response-status 100)) (url-http-debug "Parsed HTTP headers: class=%d status=%d" class url-http-response-status) (when (url-use-cookies url-http-target-url) --8<---------------cut here---------------end--------------->8--- > -David Best regards, Michael.