bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11981: 24.1.50; url-http-parse-headers should not disable file name


From: Michael Albinus
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

David Engster <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]