From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16960: 24.3.50; Infinite loop in url-retrieve-synchronously if method is POST and response status is 301/302 Date: Fri, 25 Dec 2015 21:36:32 +0100 Message-ID: <87k2o22rlb.fsf@gnus.org> References: <878usmni8l.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1451075842 20426 80.91.229.3 (25 Dec 2015 20:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Dec 2015 20:37:22 +0000 (UTC) Cc: 16960@debbugs.gnu.org To: Alex Kost Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 25 21:37:11 2015 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 1aCZ6r-00067x-Dk for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Dec 2015 21:37:09 +0100 Original-Received: from localhost ([::1]:36378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCZ6q-0006uk-Nc for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Dec 2015 15:37:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCZ6n-0006uZ-4L for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 15:37:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCZ6j-00062j-Ti for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 15:37:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCZ6j-00062e-QB for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 15:37:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aCZ6j-0004Nk-Me for bug-gnu-emacs@gnu.org; Fri, 25 Dec 2015 15:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Dec 2015 20:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16960 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16960-submit@debbugs.gnu.org id=B16960.145107581616834 (code B ref 16960); Fri, 25 Dec 2015 20:37:01 +0000 Original-Received: (at 16960) by debbugs.gnu.org; 25 Dec 2015 20:36:56 +0000 Original-Received: from localhost ([127.0.0.1]:35462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZ6e-0004NS-D6 for submit@debbugs.gnu.org; Fri, 25 Dec 2015 15:36:56 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:48836) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZ6c-0004NJ-Cs for 16960@debbugs.gnu.org; Fri, 25 Dec 2015 15:36:54 -0500 Original-Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCZ6H-00044d-5d; Fri, 25 Dec 2015 21:36:33 +0100 In-Reply-To: <878usmni8l.fsf@gmail.com> (Alex Kost's message of "Fri, 07 Mar 2014 19:25:30 +0400") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aCZ6H-00044d-5d MailScanner-NULL-Check: 1451680593.43088@qAKKjM3SRwwfOjXXgRuoMA 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110436 Archived-At: Alex Kost writes: > The problem is the following: when I try to login to > https://aur.archlinux.org with `url-retrieve-synchronously' (see the > code below), Emacs freezes (C-g helps) because callback passed to > `url-retrieve' is never called. > > AFAIU this happens because `url-http-parse-headers' returns nil if > response status is 301/302/307 and method is not "HEAD" or "GET" (see > ). > At least the problem goes away when I add: > > (setq success t) > > after > > (or `moved-permanently `found `temporary-redirect) > > in `url-http-parse-headers'. > > Would it be OK to allow such requests? > > Recipe is simple but you need to have an account on > for that: I don't have an account there, so I can't reproduce this bug. But could you create a patch that fixes this problem? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no