From unknown Tue Jun 24 01:42:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11469: 24.1.50; url-retrieve with PUT method fails every two times Resent-From: Takafumi Arakaki Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 May 2012 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11469@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13370116689936 (code B ref -1); Mon, 14 May 2012 16:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 May 2012 16:07:48 +0000 Received: from localhost ([127.0.0.1]:53027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STxny-0002Zc-Oa for submit@debbugs.gnu.org; Mon, 14 May 2012 12:07:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38844) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STtVb-0004Hh-Vi for submit@debbugs.gnu.org; Mon, 14 May 2012 07:32:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STtV6-0007QK-8G for submit@debbugs.gnu.org; Mon, 14 May 2012 07:31:45 -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, NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,WEIRD_PORT autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STtV6-0007QE-2U for submit@debbugs.gnu.org; Mon, 14 May 2012 07:31:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STtUz-0000Jk-SR for bug-gnu-emacs@gnu.org; Mon, 14 May 2012 07:31:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STtUu-0007OW-2k for bug-gnu-emacs@gnu.org; Mon, 14 May 2012 07:31:33 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:55360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STtUt-0007O4-RN for bug-gnu-emacs@gnu.org; Mon, 14 May 2012 07:31:27 -0400 Received: by qcsd16 with SMTP id d16so3825103qcs.0 for ; Mon, 14 May 2012 04:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=D0IQt3e6RmIf0RwgBa52l+NN3ER0yx+yHJTcchkb+7M=; b=fR04pJbvy/b5boQx4eYedAPsTJ0xxXrpCveQKMpCATZGngiScrVifiVvKvB3ZWTdDS s70e4Kh2BIooBoLApwvq/nCy/hQDCc9ZkCJdV+ufAIiJJjrS37ZqU3E1TMpQPlrNan3q dKLarb4gUG8Rwji7LBR4JU0Lo7/qpcFtfzZxnUQmXF/ak8V4B5Vkc/TkgkjNmLltvY7V gdI6pH6/OJz6BghqnqVm0ciT8g5fHU0KLD74embT038cj9TBlGzXlVRKRb7gyYBgzd2K oPPYgB7iJ6e6bTSb5kh/HBJq+/lXQ5E7KXqKD5icrV4kb8MOpFLUp6xVSdqabxVpfkK9 x5FQ== Received: by 10.224.183.135 with SMTP id cg7mr12058281qab.25.1336995085232; Mon, 14 May 2012 04:31:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.137.72 with HTTP; Mon, 14 May 2012 04:31:05 -0700 (PDT) From: Takafumi Arakaki Date: Mon, 14 May 2012 13:31:05 +0200 X-Google-Sender-Auth: zF0cKzbIe9m4eFtBcEEOvOuKKck Message-ID: Content-Type: text/plain; charset=ISO-8859-1 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-Mailman-Approved-At: Mon, 14 May 2012 12:07:25 -0400 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 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': I found some probelem using url-retrieve. To reproduce the probelem you can use the following snippet: (let ((url "http://127.0.0.1:9999/") (url-request-method "PUT") (url-request-extra-headers '(("Content-Type" . "application/json"))) (url-request-data "[1 2 3]")) (url-retrieve url (lambda (status)))) I am executing the above snippet (using eval-last-sexp at the end of the exnippet) and it fails every two times (it succeeds and then fails and then succeeds and then ...). I got this message when it fails: error in process sentinel: url-http-end-of-document-sentinel: Symbol's value as variable is void: url-request-method error in process sentinel: Symbol's value as variable is void: url-request-method I checked above with emacs started by emacs-snapshot -Q. Furthremore, in some case I have url-request-method set to nil at global lavel (M-: url-request-method RET gives nil). And in this case, GET method is used instead. I guess this is because of "(or url-request-method "GET")" in url-http. I guess it won't matter, but I am using Python tornado as a web server to check the behavior. This is the test server I am using: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): print "GET" print self.request.body self.write("Hello, world") self.finish() def put(self): print "PUT" print self.request.body self.set_status(204) self.finish() application = tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": application.listen(9999) tornado.ioloop.IOLoop.instance().start() If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.1.50/etc/DEBUG. In GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0) of 2012-04-10 on mercury, modified by Debian (emacs-snapshot package, version 2:20120410-1~ppa1~maverick1) Windowing system distributor `The X.Org Foundation', version 11.0.10900000 Configured using: `configure '--build' 'i686-linux-gnu' '--host' 'i686-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib//' '--with-x=yes' '--with-x-toolkit=gtk' '--with-imagemagick=yes' 'build_alias=i686-linux-gnu' 'host_alias=i686-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed -znocombreloc' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: 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: C-x C-f C-y C-x C-f p C-x b C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e C-x C-e C-x C-e C-x C-e C-e C-f C-p C-p C-p C-p C-p C-p C-p C-p C-p M-m C-p C-f C-p C-s C-w C-w C-w C-s C-s C-n C-a C-n C-n C-n C-n C-n C-n C-n C-n C-e C-n C-e C-x C-e C-x C-e C-n C-p C-n C-n C-e C-p C-e C-p C-p C-e C-p C-p C-p C-p C-e C-p C-e C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e C-p C-e M-x e b u g - r e e m a b C-g M-x r e p o r Recent messages: (buffer-string) = HTTP/1.1 204 No Content Content-Length: 0 Content-Type: text/html; charset=UTF-8 Server: TornadoServer/2.2 [2 times] byte-code: End of buffer [2 times] Making completion list... Quit Making completion list... [2 times] Load-path shadows: /usr/share/emacs/24.1.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/24.1.50/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.1.50/lisp/textmodes/rst Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail help-mode view multi-isearch mail-utils network-stream starttls url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util password-cache url-vars mm-util mail-prsvr mailcap python-21 python easymenu comint regexp-opt ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe 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 Tue Jun 24 01:42:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11469: [PATCH] Fix bug #11469; propagate url-request-* vars properly References: In-Reply-To: Resent-From: Takafumi Arakaki Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Dec 2012 20:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11469@debbugs.gnu.org Received: via spool by 11469-submit@debbugs.gnu.org id=B11469.13560370412036 (code B ref 11469); Thu, 20 Dec 2012 20:58:01 +0000 Received: (at 11469) by debbugs.gnu.org; 20 Dec 2012 20:57:21 +0000 Received: from localhost ([127.0.0.1]:52992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TlnBA-0000Wm-SP for submit@debbugs.gnu.org; Thu, 20 Dec 2012 15:57:21 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:47683) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TlnB8-0000Wf-G4 for 11469@debbugs.gnu.org; Thu, 20 Dec 2012 15:57:19 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TlnAy-0000YO-Em for 11469@debbugs.gnu.org; Thu, 20 Dec 2012 15:57:08 -0500 From: Takafumi Arakaki Date: Thu, 20 Dec 2012 21:13:31 +0100 Lines: 46 X-From-Line: emacs-devel-bounces+rgm=gnu.org@gnu.org Thu Dec 20 15:14:11 2012 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38723) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1TlmVP-0006zF-7r for rgm@gnu.org; Thu, 20 Dec 2012 15:14:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlmVK-0001TJ-Up for rgm@gnu.org; Thu, 20 Dec 2012 15:14:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlmVK-0001TF-Rw for rgm@gnu.org; Thu, 20 Dec 2012 15:14:06 -0500 Received: from localhost ([::1]:57378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlmVK-0006Lq-OV for rgm@gnu.org; Thu, 20 Dec 2012 15:14:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlmVF-0006FL-Ik for emacs-devel@gnu.org; Thu, 20 Dec 2012 15:14:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlmV8-0001Rk-17 for emacs-devel@gnu.org; Thu, 20 Dec 2012 15:14:01 -0500 Received: from mail-oa0-f52.google.com ([209.85.219.52]:36045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlmV7-0001Rc-Rg for emacs-devel@gnu.org; Thu, 20 Dec 2012 15:13:53 -0500 Received: by mail-oa0-f52.google.com with SMTP id o6so3769706oag.25 for ; Thu, 20 Dec 2012 12:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=YiCGRd28ukXmulFF8OsSNhUoUxQWtsFVwThODCRQ6W0=; b=yPE24cX848Q+w/xLTX39AXIMoAuM0d1Z1olN2Pra5cjtArCUuEdm1EI+ACqzDD4QrK ZxdKwBIoyp3OneciWOqR4Llq8SKyDptSIEVMyPH5bZ2hvKRcnW8vXHx5wzOJnTr1kV23 stzfxA2qKH0mIc72c5Lvd/13EuxeKBjNvJ/WTB0OBU9FC9LCsVbMc3lonAeih7PFWfXH iZMXBJ4zylWSHJ0NekLtBjDv7Q/QFRSQKjVmM9dvs13Ql6gllW2HJ+ZNE+lWO48yL8cm 1vnqBUWst4kJzclEaaUNxG4X3COSZLMd5yHBz0K1+GwbUAjLz+q0d8JFs70Fv54icMv9 fXCw== Received: by 10.60.170.10 with SMTP id ai10mr9320630oec.72.1356034432887; Thu, 20 Dec 2012 12:13:52 -0800 (PST) Received: by 10.76.100.130 with HTTP; Thu, 20 Dec 2012 12:13:31 -0800 (PST) X-Google-Sender-Auth: QaynWXROQgG_wstXNLH5cRfSWDI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org 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: -5.5 (-----) --=-=-= Content-Type: text/plain; charset=iso-8859-1 Hi, This is a patch to fix bug #11469 24.1.50; url-retrieve with PUT method fails every two times http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11469 Best, Takafumi --=-=-= Content-Type: application/octet-stream; name=0001-Fix-bug-11469-propagate-url-request-vars-properly.patch Content-Disposition: attachment; filename=0001-Fix-bug-11469-propagate-url-request-vars-properly.patch Content-Transfer-Encoding: base64 RnJvbSAzZDFlNWM3ZGQxNGQ1YjQ3NzQ5YjlhMWM3MjdkZWI2NGFiY2I1YmJhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUYWthZnVtaSBBcmFrYWtpIDxha2EudGtmQGdtYWlsLmNvbT4K RGF0ZTogVGh1LCAyMCBEZWMgMjAxMiAyMDowNjowMCArMDEwMApTdWJqZWN0OiBbUEFUQ0hdIEZp eCBidWcgIzExNDY5OyBwcm9wYWdhdGUgdXJsLXJlcXVlc3QtKiB2YXJzIHByb3Blcmx5Cgp1cmwt cmV0cmlldmUgd2l0aCBQVVQgbWV0aG9kIGZhaWxlZCBldmVyeSB0d28gdGltZXMgcHJpb3IgdG8g dGhpcwpwYXRjaCwgYXMgdXJsLXJlcXVlc3QtbWV0aG9kIHdhcyBub3QgcHJvcGFnYXRlZCB0byB0 aGUgbmVzdGVkIGNhbGwKb2YgdXJsLWh0dHAuCi0tLQogbGlzcC91cmwvdXJsLWh0dHAuZWwgfCAg ICA3ICsrKysrLS0KIDEgZmlsZXMgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCAyIGRlbGV0aW9u cygtKQoKZGlmZiAtLWdpdCBhL2xpc3AvdXJsL3VybC1odHRwLmVsIGIvbGlzcC91cmwvdXJsLWh0 dHAuZWwKaW5kZXggNzNkNTNlMC4uMWY3MDVmNiAxMDA2NDQKLS0tIGEvbGlzcC91cmwvdXJsLWh0 dHAuZWwKKysrIGIvbGlzcC91cmwvdXJsLWh0dHAuZWwKQEAgLTg5MCw4ICs4OTAsMTEgQEAgc2hv dWxkIGJlIHNob3duIHRvIHRoZSB1c2VyLiIKIAkJICh1cmwtaHR0cC1hY3RpdmF0ZS1jYWxsYmFj aykKIAkgICAgICAgOzsgQ2FsbCBgdXJsLWh0dHAnIGFnYWluIGlmIG91ciBjb25uZWN0aW9uIGV4 cGlyZWQuCiAJICAgICAgIChlcmFzZS1idWZmZXIpCi0JICAgICAgICh1cmwtaHR0cCB1cmwtY3Vy cmVudC1vYmplY3QgdXJsLWNhbGxiYWNrLWZ1bmN0aW9uCi0JCQkgdXJsLWNhbGxiYWNrLWFyZ3Vt ZW50cyAoY3VycmVudC1idWZmZXIpKSkpCisgICAgICAgICAgICAgICAobGV0ICgodXJsLXJlcXVl c3QtbWV0aG9kIHVybC1odHRwLW1ldGhvZCkKKyAgICAgICAgICAgICAgICAgICAgICh1cmwtcmVx dWVzdC1leHRyYS1oZWFkZXJzIHVybC1odHRwLWV4dHJhLWhlYWRlcnMpCisgICAgICAgICAgICAg ICAgICAgICAodXJsLXJlcXVlc3QtZGF0YSB1cmwtaHR0cC1kYXRhKSkKKyAgICAgICAgICAgICAg ICAgKHVybC1odHRwIHVybC1jdXJyZW50LW9iamVjdCB1cmwtY2FsbGJhY2stZnVuY3Rpb24KKyAg ICAgICAgICAgICAgICAgICAgICAgICAgIHVybC1jYWxsYmFjay1hcmd1bWVudHMgKGN1cnJlbnQt YnVmZmVyKSkpKSkKIAkgICAgKCh1cmwtaHR0cC1wYXJzZS1oZWFkZXJzKQogCSAgICAgKHVybC1o dHRwLWFjdGl2YXRlLWNhbGxiYWNrKSkpKSkpCiAKLS0gCjEuNy41LjQKCg== --=-=-=-- From unknown Tue Jun 24 01:42:01 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: Takafumi Arakaki Subject: bug#11469: closed (Re: bug#11469: [PATCH] Fix bug #11469; propagate url-request-* vars properly) Message-ID: References: <87vcbukd0l.fsf@gnu.org> X-Gnu-PR-Message: they-closed 11469 X-Gnu-PR-Package: emacs Reply-To: 11469@debbugs.gnu.org Date: Sat, 22 Dec 2012 03:01:12 +0000 Content-Type: multipart/mixed; boundary="----------=_1356145272-1922-1" This is a multi-part message in MIME format... ------------=_1356145272-1922-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11469: 24.1.50; url-retrieve with PUT method fails every two times 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 11469@debbugs.gnu.org. --=20 11469: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11469 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1356145272-1922-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11469-done) by debbugs.gnu.org; 22 Dec 2012 03:00:14 +0000 Received: from localhost ([127.0.0.1]:54791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmFJs-0000To-Mi for submit@debbugs.gnu.org; Fri, 21 Dec 2012 22:00:13 -0500 Received: from mail-pb0-f47.google.com ([209.85.160.47]:63433) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmFJi-0000So-Gd for 11469-done@debbugs.gnu.org; Fri, 21 Dec 2012 22:00:05 -0500 Received: by mail-pb0-f47.google.com with SMTP id un1so3054667pbc.34 for <11469-done@debbugs.gnu.org>; Fri, 21 Dec 2012 18:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=XIC8ESQ8leyIRO13us0VRtTzto1FqiDYzeIjCruXIhw=; b=wTKPgtB0XP6drUag7CABfhMWtrdek0Glv+oObWg7BpUKZ+lXTQ/x1oXsWl7Ooy2yXN R8juPEmFohTrZj4fnwXv8ZCp4W672rOyd+AaE4T7KYIeN6u6hkqiRt3AgEetheQK58qM xYU9T0mV3k5pD8Q/PrzVAT9E+IvpRVlenH0moiSVAN1bfeBblwJVgCdLOideIaNoh4ij UBucpNxweFZ9k2l0wan5td+2tBxWxAUxduejbyunn7M7AZRUgbwTOF+3T/NsRp88LWC3 C/DUpXLHOVeQA5e9z1Tzd6nnN9qP9hUhAJ31D0SJYOv1mtBpNFt+lsMYnWX7ksPrVLYy Odyw== X-Received: by 10.68.197.8 with SMTP id iq8mr45146387pbc.56.1356145183762; Fri, 21 Dec 2012 18:59:43 -0800 (PST) Received: from ulysses (cm107.delta179.maxonline.com.sg. [59.189.179.107]) by mx.google.com with ESMTPS id hs2sm8002375pbc.22.2012.12.21.18.59.40 (version=SSLv3 cipher=OTHER); Fri, 21 Dec 2012 18:59:42 -0800 (PST) From: Chong Yidong To: Takafumi Arakaki Subject: Re: bug#11469: [PATCH] Fix bug #11469; propagate url-request-* vars properly References: Date: Sat, 22 Dec 2012 10:59:38 +0800 In-Reply-To: (Takafumi Arakaki's message of "Thu, 20 Dec 2012 21:13:31 +0100") Message-ID: <87vcbukd0l.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11469-done Cc: 11469-done@debbugs.gnu.org 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 (--) Takafumi Arakaki writes: > This is a patch to fix bug #11469 > 24.1.50; url-retrieve with PUT method fails every two times > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11469 Thank you. Committed to trunk. ------------=_1356145272-1922-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 May 2012 16:07:48 +0000 Received: from localhost ([127.0.0.1]:53027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STxny-0002Zc-Oa for submit@debbugs.gnu.org; Mon, 14 May 2012 12:07:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38844) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STtVb-0004Hh-Vi for submit@debbugs.gnu.org; Mon, 14 May 2012 07:32:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STtV6-0007QK-8G for submit@debbugs.gnu.org; Mon, 14 May 2012 07:31:45 -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, NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,WEIRD_PORT autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STtV6-0007QE-2U for submit@debbugs.gnu.org; Mon, 14 May 2012 07:31:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STtUz-0000Jk-SR for bug-gnu-emacs@gnu.org; Mon, 14 May 2012 07:31:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STtUu-0007OW-2k for bug-gnu-emacs@gnu.org; Mon, 14 May 2012 07:31:33 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:55360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STtUt-0007O4-RN for bug-gnu-emacs@gnu.org; Mon, 14 May 2012 07:31:27 -0400 Received: by qcsd16 with SMTP id d16so3825103qcs.0 for ; Mon, 14 May 2012 04:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=D0IQt3e6RmIf0RwgBa52l+NN3ER0yx+yHJTcchkb+7M=; b=fR04pJbvy/b5boQx4eYedAPsTJ0xxXrpCveQKMpCATZGngiScrVifiVvKvB3ZWTdDS s70e4Kh2BIooBoLApwvq/nCy/hQDCc9ZkCJdV+ufAIiJJjrS37ZqU3E1TMpQPlrNan3q dKLarb4gUG8Rwji7LBR4JU0Lo7/qpcFtfzZxnUQmXF/ak8V4B5Vkc/TkgkjNmLltvY7V gdI6pH6/OJz6BghqnqVm0ciT8g5fHU0KLD74embT038cj9TBlGzXlVRKRb7gyYBgzd2K oPPYgB7iJ6e6bTSb5kh/HBJq+/lXQ5E7KXqKD5icrV4kb8MOpFLUp6xVSdqabxVpfkK9 x5FQ== Received: by 10.224.183.135 with SMTP id cg7mr12058281qab.25.1336995085232; Mon, 14 May 2012 04:31:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.137.72 with HTTP; Mon, 14 May 2012 04:31:05 -0700 (PDT) From: Takafumi Arakaki Date: Mon, 14 May 2012 13:31:05 +0200 X-Google-Sender-Auth: zF0cKzbIe9m4eFtBcEEOvOuKKck Message-ID: Subject: 24.1.50; url-retrieve with PUT method fails every two times To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 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-Mailman-Approved-At: Mon, 14 May 2012 12:07:25 -0400 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 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': I found some probelem using url-retrieve. To reproduce the probelem you can use the following snippet: (let ((url "http://127.0.0.1:9999/") (url-request-method "PUT") (url-request-extra-headers '(("Content-Type" . "application/json"))) (url-request-data "[1 2 3]")) (url-retrieve url (lambda (status)))) I am executing the above snippet (using eval-last-sexp at the end of the exnippet) and it fails every two times (it succeeds and then fails and then succeeds and then ...). I got this message when it fails: error in process sentinel: url-http-end-of-document-sentinel: Symbol's value as variable is void: url-request-method error in process sentinel: Symbol's value as variable is void: url-request-method I checked above with emacs started by emacs-snapshot -Q. Furthremore, in some case I have url-request-method set to nil at global lavel (M-: url-request-method RET gives nil). And in this case, GET method is used instead. I guess this is because of "(or url-request-method "GET")" in url-http. I guess it won't matter, but I am using Python tornado as a web server to check the behavior. This is the test server I am using: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): print "GET" print self.request.body self.write("Hello, world") self.finish() def put(self): print "PUT" print self.request.body self.set_status(204) self.finish() application = tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": application.listen(9999) tornado.ioloop.IOLoop.instance().start() If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.1.50/etc/DEBUG. In GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0) of 2012-04-10 on mercury, modified by Debian (emacs-snapshot package, version 2:20120410-1~ppa1~maverick1) Windowing system distributor `The X.Org Foundation', version 11.0.10900000 Configured using: `configure '--build' 'i686-linux-gnu' '--host' 'i686-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib//' '--with-x=yes' '--with-x-toolkit=gtk' '--with-imagemagick=yes' 'build_alias=i686-linux-gnu' 'host_alias=i686-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed -znocombreloc' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: 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: C-x C-f C-y C-x C-f p C-x b C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e C-x C-e C-x C-e C-x C-e C-e C-f C-p C-p C-p C-p C-p C-p C-p C-p C-p M-m C-p C-f C-p C-s C-w C-w C-w C-s C-s C-n C-a C-n C-n C-n C-n C-n C-n C-n C-n C-e C-n C-e C-x C-e C-x C-e C-n C-p C-n C-n C-e C-p C-e C-p C-p C-e C-p C-p C-p C-p C-e C-p C-e C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e C-p C-e M-x e b u g - r e e m a b C-g M-x r e p o r Recent messages: (buffer-string) = HTTP/1.1 204 No Content Content-Length: 0 Content-Type: text/html; charset=UTF-8 Server: TornadoServer/2.2 [2 times] byte-code: End of buffer [2 times] Making completion list... Quit Making completion list... [2 times] Load-path shadows: /usr/share/emacs/24.1.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/24.1.50/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.1.50/lisp/textmodes/rst Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail help-mode view multi-isearch mail-utils network-stream starttls url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util password-cache url-vars mm-util mail-prsvr mailcap python-21 python easymenu comint regexp-opt ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe 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) ------------=_1356145272-1922-1--