From unknown Mon Jun 23 04:14:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Resent-From: Thomas Hisch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2019 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34855@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.15525622576094 (code B ref -1); Thu, 14 Mar 2019 11:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Mar 2019 11:17:37 +0000 Received: from localhost ([127.0.0.1]:43049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4OMi-0001aD-HR for submit@debbugs.gnu.org; Thu, 14 Mar 2019 07:17:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4OMg-0001Zz-6s for submit@debbugs.gnu.org; Thu, 14 Mar 2019 07:17:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:58912) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4OMa-0005I2-VW for submit@debbugs.gnu.org; Thu, 14 Mar 2019 07:17:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4OMZ-0007eT-Du for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 07:17:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4O7d-0005ea-CO for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 07:02:02 -0400 Received: from mail.ims.co.at ([81.223.138.19]:41877) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4O7c-0005bQ-TS for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 07:02:01 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.ims.co.at (Postfix) with ESMTP id 3A59C137F1 for ; Thu, 14 Mar 2019 12:01:57 +0100 (CET) X-Virus-Scanned: amavisd-new at ims.co.at Received: from mail.ims.co.at ([127.0.0.1]) by localhost (mail.ims.co.at [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kDpR5VEt07Ih for ; Thu, 14 Mar 2019 12:01:55 +0100 (CET) Received: by mail.ims.co.at (Postfix, from userid 1000) id 1A7F613801; Thu, 14 Mar 2019 12:01:55 +0100 (CET) Received: from srv-xchg.ims.co.at (unknown [10.98.20.61]) by mail.ims.co.at (Postfix) with ESMTPS id 16621137F1 for ; Thu, 14 Mar 2019 12:01:55 +0100 (CET) Received: from PC-16609.ims.co.at (192.168.100.240) by srv-xchg-01.ims.co.at (10.120.20.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Thu, 14 Mar 2019 12:01:55 +0100 From: Thomas Hisch Message-ID: Date: Thu, 14 Mar 2019 12:01:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US X-Originating-IP: [192.168.100.240] X-ClientProxiedBy: srv-xchg-02.ims.co.at (10.120.20.62) To srv-xchg-01.ims.co.at (10.120.20.61) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.223.138.19 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) When I try to connect to our local gerrit server (https, using a custom CAcert) every second request fails: (400 bad request error) When I perform the test in emacs 26.1 (installed via the fedora package manager) all request are successfull. This is the script I'm using for my tests: (require 'auth-source) (require 'json) (require 'url) (require 'url-http) (require 'url-vars) (require 'subr-x) (defcustom ims-gerrit-host "gerrit.ims.co.at" "hostname of the gerrit instance" :group 'ims-jira :type 'string) (defun ims-gerrit-authentication () "Return an encoded string with jira username and password." (let ((pass-entry (auth-source-user-and-password ims-gerrit-host))) (if-let ((username (nth 0 pass-entry)) (password (nth 1 pass-entry))) (base64-encode-string (concat username ":" password))))) (defun ims-gerrit--get-auth-headers () "Helper function to setup auth header for gerrit url call." `(("Content-Type" . "application/x-www-form-urlencoded") ("Authorization" . ,(concat "Basic " (ims-gerrit-authentication))))) (defun ims-gerrit--retrieve-page-as-json (path) "Shortcut for gerrit api PATH to return valid json." (let ((url-request-extra-headers (ims-gerrit--get-auth-headers))) (with-current-buffer (url-retrieve-synchronously (concat "https://" ims-gerrit-host path)) (goto-char (point-min)) (re-search-forward "^$") (delete-region (point) (point-min)) ;; FIXME (buffer-string)) ;; (json-read-from-string (buffer-string))) )) (defun gerrit-get-server-version () (interactive) (switch-to-buffer "*gerritests*") (erase-buffer) (insert (emacs-version)) (insert ?\n) (dolist (loopvar `(0 1 2 3 4 5 6 7 8)) (insert (format "\n##### %d\n" loopvar)) (insert (prin1-to-string (ims-gerrit--retrieve-page-as-json "/config/server/version"))))) The emacs 27.0 build, where the test fails, was build be me locally. Could it be that something between emacs 26.1 and the HEAD of master broke sth? This is the ouput I get in emcas 27.0 (as you can see every 2nd request is empty) GNU Emacs 27.0.50 (build 99, x86_64-pc-linux-gnu, GTK+ Version 3.24.1) of 2019-03-14 ##### 0 "" ##### 1 " )]}' \"2.16.2\" " ##### 2 "" ##### 3 " )]}' \"2.16.2\" " ##### 4 "" ##### 5 " )]}' \"2.16.2\" " ##### 6 "" ##### 7 " )]}' \"2.16.2\" " ##### 8 "" Regards Thomas In GNU Emacs 27.0.50 (build 99, x86_64-pc-linux-gnu, GTK+ Version 3.24.1) of 2019-03-14 built on PC-16609.ims.co.at Repository revision: 020e69d992c98fd852e835c9bd707a8d137090f2 Repository branch: master Windowing system distributor 'Fedora Project', version 11.0.12003000 System Description: Fedora 29 (Workstation Edition) Recent messages: Mark set Quit Saving file=20 /home/thomas.hisch/gitrepos/dotfiles/emacs.d/user-lisp/gerrit-urltest.el.= .. Wrote=20 /home/thomas.hisch/gitrepos/dotfiles/emacs.d/user-lisp/gerrit-urltest.el You can run the command =E2=80=98eval-buffer=E2=80=99 with M-x ev-b RET Contacting host: gerrit.ims.co.at:443 completing-read-default: Command attempted to use minibuffer while in=20 minibuffer Quit Making completion list... [2 times] Scanning for dabbrevs...done Configured using: 'configure --prefix=3D/opt/emacs --with-x-toolkit=3Dgtk3 --with-xpm --without-jpeg --without-gif --without-tiff' Configured features: XPM PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS PDUMPER LCMS2 GMP Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-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 Load-path shadows: None found. Features: (shadow sort mail-extr dabbrev emacsbug message dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail mail-utils gnutls network-stream url-cache url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date vc-git diff-mode easymenu easy-mmode elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 65737 7435) (symbols 48 7667 1) (strings 32 23669 1937) (string-bytes 1 709583) (vectors 16 12492) (vector-slots 8 153584 13038) (floats 8 25 80) (intervals 56 379 0) (buffers 992 32)) --------------------------------------------------------------------- Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte=20 Informationen. Wenn Sie nicht der richtige Adressat sind oder diese=20 E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den=20 Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie=20 die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information.=20 If you are not the intended recipient (or have received this e-mail=20 in error) please notify the sender immediately and destroy this e-mail.=20 Any unauthorized copying, disclosure or distribution of the material=20 in this e-mail is strictly prohibited IMS Nanofabrication GmbH FN: 208021 p, FB-Gericht: Wien; Sitz: Schreygasse 3, 1020, Vienna (Austria),Tel. +43 1 214 48 94;=20 E-Mail: imsoffice@ims.co.at; DVR-Nr: 0374369; www.ims.co.at From unknown Mon Jun 23 04:14:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2019 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thomas Hisch Cc: 34855@debbugs.gnu.org Received: via spool by 34855-submit@debbugs.gnu.org id=B34855.155256716121789 (code B ref 34855); Thu, 14 Mar 2019 12:40:02 +0000 Received: (at 34855) by debbugs.gnu.org; 14 Mar 2019 12:39:21 +0000 Received: from localhost ([127.0.0.1]:43074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4Pdo-0005fN-TD for submit@debbugs.gnu.org; Thu, 14 Mar 2019 08:39:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4Pdm-0005fB-KI for 34855@debbugs.gnu.org; Thu, 14 Mar 2019 08:39:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4Pdg-0006eG-7Y; Thu, 14 Mar 2019 08:39:12 -0400 Received: from [176.228.60.248] (port=1065 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h4Pdf-0008F8-Me; Thu, 14 Mar 2019 08:39:12 -0400 Date: Thu, 14 Mar 2019 14:38:51 +0200 Message-Id: <8336np3a1w.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Thomas Hisch on Thu, 14 Mar 2019 12:01:54 +0100) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Thomas Hisch > Date: Thu, 14 Mar 2019 12:01:54 +0100 > > The emacs 27.0 build, where the test fails, was build be me locally. > Could it be that something between emacs 26.1 and the HEAD of master > broke sth? Please see if it weren't my recent changes in commit 9486d87cfe that broke this. If my changes are not the reason, I'd appreciate if you could bisect to find the commit which broke this, since the reproduction recipe you provided is quite complex. Alternatively, a simpler reproducer starting from "emacs -Q" would be welcome. Thanks. From unknown Mon Jun 23 04:14:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Resent-From: Thomas Hisch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2019 16:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 34855@debbugs.gnu.org Received: via spool by 34855-submit@debbugs.gnu.org id=B34855.155258211614180 (code B ref 34855); Thu, 14 Mar 2019 16:49:01 +0000 Received: (at 34855) by debbugs.gnu.org; 14 Mar 2019 16:48:36 +0000 Received: from localhost ([127.0.0.1]:43956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4TX1-0003ge-MW for submit@debbugs.gnu.org; Thu, 14 Mar 2019 12:48:35 -0400 Received: from mail.ims.co.at ([81.223.138.19]:8621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4TWx-0003gM-6S for 34855@debbugs.gnu.org; Thu, 14 Mar 2019 12:48:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.ims.co.at (Postfix) with ESMTP id BCAEB1380A; Thu, 14 Mar 2019 17:48:25 +0100 (CET) X-Virus-Scanned: amavisd-new at ims.co.at Received: from mail.ims.co.at ([127.0.0.1]) by localhost (mail.ims.co.at [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6xHn7IIXjoff; Thu, 14 Mar 2019 17:48:24 +0100 (CET) Received: by mail.ims.co.at (Postfix, from userid 1000) id AF0CA1380C; Thu, 14 Mar 2019 17:48:24 +0100 (CET) Received: from srv-xchg.ims.co.at (unknown [10.98.20.61]) by mail.ims.co.at (Postfix) with ESMTPS id 905151380A; Thu, 14 Mar 2019 17:48:24 +0100 (CET) Received: from PC-16609.ims.co.at (192.168.100.240) by srv-xchg-01.ims.co.at (10.120.20.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Thu, 14 Mar 2019 17:48:24 +0100 References: <8336np3a1w.fsf@gnu.org> From: Thomas Hisch Message-ID: <9d877dcf-d29d-1bb4-1c66-e4b72e767d94@ims.co.at> Date: Thu, 14 Mar 2019 17:48:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <8336np3a1w.fsf@gnu.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.100.240] X-ClientProxiedBy: srv-xchg-02.ims.co.at (10.120.20.62) To srv-xchg-01.ims.co.at (10.120.20.61) X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 3/14/19 1:38 PM, Eli Zaretskii wrote: >> From: Thomas Hisch >> Date: Thu, 14 Mar 2019 12:01:54 +0100 >> >> The emacs 27.0 build, where the test fails, was build be me local [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ims.co.at] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [81.223.138.19 listed in list.dnswl.org] 1.1 TRACKER_ID BODY: Incorporates a tracking ID number X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) On 3/14/19 1:38 PM, Eli Zaretskii wrote: >> From: Thomas Hisch >> Date: Thu, 14 Mar 2019 12:01:54 +0100 >> >> The emacs 27.0 build, where the test fails, was build be me locally. >> Could it be that something between emacs 26.1 and the HEAD of master >> broke sth? > > Please see if it weren't my recent changes in commit 9486d87cfe that > broke this. Thx for the fast answer. Your commit 9486d did not break this issue. The commit that broke it is 84613dae5c34ea742dd9a3e56f5acb55f604b483 Reverting it locally fixed the issue for me. Sry that that recipe was a bit too long. Do you still want me to shrink the recipe? Regards Thomas > > If my changes are not the reason, I'd appreciate if you could bisect > to find the commit which broke this, since the reproduction recipe you > provided is quite complex. Alternatively, a simpler reproducer > starting from "emacs -Q" would be welcome. > > Thanks. > --------------------------------------------------------------------- Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly prohibited IMS Nanofabrication GmbH FN: 208021 p, FB-Gericht: Wien; Sitz: Schreygasse 3, 1020, Vienna (Austria),Tel. +43 1 214 48 94; E-Mail: imsoffice@ims.co.at; DVR-Nr: 0374369; www.ims.co.at From unknown Mon Jun 23 04:14:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2019 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thomas Hisch , Andreas Schwab Cc: 34855@debbugs.gnu.org Received: via spool by 34855-submit@debbugs.gnu.org id=B34855.155258683021564 (code B ref 34855); Thu, 14 Mar 2019 18:08:02 +0000 Received: (at 34855) by debbugs.gnu.org; 14 Mar 2019 18:07:10 +0000 Received: from localhost ([127.0.0.1]:44028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4Ul4-0005bj-6m for submit@debbugs.gnu.org; Thu, 14 Mar 2019 14:07:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4Ul2-0005bV-1x for 34855@debbugs.gnu.org; Thu, 14 Mar 2019 14:07:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4Ukv-0000wi-I2; Thu, 14 Mar 2019 14:07:01 -0400 Received: from [176.228.60.248] (port=1592 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h4Uks-0003K9-ON; Thu, 14 Mar 2019 14:07:01 -0400 Date: Thu, 14 Mar 2019 20:06:22 +0200 Message-Id: <83sgvp1gbl.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <9d877dcf-d29d-1bb4-1c66-e4b72e767d94@ims.co.at> (message from Thomas Hisch on Thu, 14 Mar 2019 17:48:24 +0100) References: <8336np3a1w.fsf@gnu.org> <9d877dcf-d29d-1bb4-1c66-e4b72e767d94@ims.co.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > CC: <34855@debbugs.gnu.org> > From: Thomas Hisch > Date: Thu, 14 Mar 2019 17:48:24 +0100 > > The commit that broke it is > > 84613dae5c34ea742dd9a3e56f5acb55f604b483 > > Reverting it locally fixed the issue for me. Thanks. Andreas, could you please take a look at this? > Do you still want me to shrink the recipe? No, since you've identified the change which broke this, I see no need. But maybe Andreas will have some questions for you. From unknown Mon Jun 23 04:14:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Mar 2019 21:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Thomas Hisch , 34855@debbugs.gnu.org Received: via spool by 34855-submit@debbugs.gnu.org id=B34855.155294543427215 (code B ref 34855); Mon, 18 Mar 2019 21:44:02 +0000 Received: (at 34855) by debbugs.gnu.org; 18 Mar 2019 21:43:54 +0000 Received: from localhost ([127.0.0.1]:49299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h6030-00074t-0F for submit@debbugs.gnu.org; Mon, 18 Mar 2019 17:43:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:51244 helo=mx1.suse.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h602y-00074d-VH for 34855@debbugs.gnu.org; Mon, 18 Mar 2019 17:43:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0C939AF6D; Mon, 18 Mar 2019 21:43:46 +0000 (UTC) From: Andreas Schwab References: <8336np3a1w.fsf@gnu.org> <9d877dcf-d29d-1bb4-1c66-e4b72e767d94@ims.co.at> <83sgvp1gbl.fsf@gnu.org> X-Yow: I'm having fun HITCHHIKING to CINCINNATI or FAR ROCKAWAY!! Date: Mon, 18 Mar 2019 22:43:45 +0100 In-Reply-To: <83sgvp1gbl.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Mar 2019 20:06:22 +0200") Message-ID: <871s3326zy.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Mär 14 2019, Eli Zaretskii wrote: >> CC: <34855@debbugs.gnu.org> >> From: Thomas Hisch >> Date: Thu, 14 Mar 2019 17:48:24 +0100 >> >> The commit that broke it is >> >> 84613dae5c34ea742dd9a3e56f5acb55f604b483 >> >> Reverting it locally fixed the issue for me. > > Thanks. Andreas, could you please take a look at this? I'm not allowed to read his mails. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From unknown Mon Jun 23 04:14:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Resent-From: Thomas Hisch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 20:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab , Eli Zaretskii Cc: 34855@debbugs.gnu.org Received: via spool by 34855-submit@debbugs.gnu.org id=B34855.155328562220937 (code B ref 34855); Fri, 22 Mar 2019 20:14:01 +0000 Received: (at 34855) by debbugs.gnu.org; 22 Mar 2019 20:13:42 +0000 Received: from localhost ([127.0.0.1]:54707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7QXu-0005Rd-1U for submit@debbugs.gnu.org; Fri, 22 Mar 2019 16:13:42 -0400 Received: from mail.ims.co.at ([81.223.138.19]:12919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7QXr-0005RP-T8 for 34855@debbugs.gnu.org; Fri, 22 Mar 2019 16:13:40 -0400 Received: from [192.168.1.23] (unknown [178.114.168.113]) by mail.ims.co.at (Postfix) with ESMTPSA id 0BFB31385D; Fri, 22 Mar 2019 21:13:32 +0100 (CET) References: <8336np3a1w.fsf@gnu.org> <9d877dcf-d29d-1bb4-1c66-e4b72e767d94@ims.co.at> <83sgvp1gbl.fsf@gnu.org> <871s3326zy.fsf@igel.home> From: Thomas Hisch Message-ID: Date: Fri, 22 Mar 2019 21:13:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <871s3326zy.fsf@igel.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 3/18/19 10:43 PM, Andreas Schwab wrote: > On Mär 14 2019, Eli Zaretskii wrote: > >>> CC: <34855@debbugs.gnu.org> >>> From: Thomas Hisch >>> Date: Thu, 14 Mar 2019 17:48:24 +0100 >>> >>> The commit that broke it is >>> >>> 84613dae5c34ea742dd9a3e56f5acb55f604b483 >>> >>> Reverting it locally fixed the issue for me. >> >> Thanks. Andreas, could you please take a look at this? > > I'm not allowed to read his mails. Do you mean mine? (https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-03/msg00404.html) My company surprisingly switched to official (= non self-signed) certificates last week. I've tested my testcode today again with the latest HEAD of the master branch and I can no longer reproduce this issue. I have no idea why the old self-signed certificates caused an issue that is fixed by reverting 84613dae5c34ea742dd9a3e56f5acb55f604b483. Regards Thomas From unknown Mon Jun 23 04:14:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 21:16:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Thomas Hisch Cc: schwab@suse.de, 34855@debbugs.gnu.org Received: via spool by 34855-submit@debbugs.gnu.org id=B34855.15532893212197 (code B ref 34855); Fri, 22 Mar 2019 21:16:06 +0000 Received: (at 34855) by debbugs.gnu.org; 22 Mar 2019 21:15:21 +0000 Received: from localhost ([127.0.0.1]:54753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7RVY-0000ZI-Td for submit@debbugs.gnu.org; Fri, 22 Mar 2019 17:15:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7RVT-0000Yc-G5 for 34855@debbugs.gnu.org; Fri, 22 Mar 2019 17:15:16 -0400 Received: from fencepost.gnu.org ([209.51.188.10]:37518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7RVA-00083E-F4; Fri, 22 Mar 2019 17:15:04 -0400 Received: from [176.228.60.248] (port=2744 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h7RHU-0000r1-7r; Fri, 22 Mar 2019 17:00:50 -0400 Date: Fri, 22 Mar 2019 23:00:44 +0200 Message-Id: <835zsar5dv.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Thomas Hisch on Fri, 22 Mar 2019 21:13:32 +0100) References: <8336np3a1w.fsf@gnu.org> <9d877dcf-d29d-1bb4-1c66-e4b72e767d94@ims.co.at> <83sgvp1gbl.fsf@gnu.org> <871s3326zy.fsf@igel.home> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Cc: 34855@debbugs.gnu.org > From: Thomas Hisch > Date: Fri, 22 Mar 2019 21:13:32 +0100 > > My company surprisingly switched to official (= non self-signed) > certificates last week. I've tested my testcode today again with the > latest HEAD of the master branch and I can no longer reproduce this issue. > > I have no idea why the old self-signed certificates caused an issue that > is fixed by reverting 84613dae5c34ea742dd9a3e56f5acb55f604b483. So you are saying that we should close this bug report? From unknown Mon Jun 23 04:14:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Resent-From: Thomas Hisch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2019 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: schwab@suse.de, 34855@debbugs.gnu.org Received: via spool by 34855-submit@debbugs.gnu.org id=B34855.155329456510696 (code B ref 34855); Fri, 22 Mar 2019 22:43:02 +0000 Received: (at 34855) by debbugs.gnu.org; 22 Mar 2019 22:42:45 +0000 Received: from localhost ([127.0.0.1]:54816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7Ss9-0002mS-FG for submit@debbugs.gnu.org; Fri, 22 Mar 2019 18:42:45 -0400 Received: from mail.ims.co.at ([81.223.138.19]:19887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7Ss6-0002mD-Dz for 34855@debbugs.gnu.org; Fri, 22 Mar 2019 18:42:43 -0400 Received: from [192.168.1.23] (unknown [178.114.168.113]) by mail.ims.co.at (Postfix) with ESMTPSA id 0E7F41385D; Fri, 22 Mar 2019 23:42:35 +0100 (CET) References: <8336np3a1w.fsf@gnu.org> <9d877dcf-d29d-1bb4-1c66-e4b72e767d94@ims.co.at> <83sgvp1gbl.fsf@gnu.org> <871s3326zy.fsf@igel.home> <835zsar5dv.fsf@gnu.org> From: Thomas Hisch Message-ID: <45469918-436b-67f6-0233-ba5560828995@ims.co.at> Date: Fri, 22 Mar 2019 23:42:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <835zsar5dv.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 3/22/19 10:00 PM, Eli Zaretskii wrote: >> Cc: 34855@debbugs.gnu.org >> From: Thomas Hisch >> Date: Fri, 22 Mar 2019 21:13:32 +0100 >> >> My company surprisingly switched to official (= non self-signed) >> certificates last week. I've tested my testcode today again with the >> latest HEAD of the master branch and I can no longer reproduce this issue. >> >> I have no idea why the old self-signed certificates caused an issue that >> is fixed by reverting 84613dae5c34ea742dd9a3e56f5acb55f604b483. > > So you are saying that we should close this bug report? > Yes, IMO you can close it. From unknown Mon Jun 23 04:14:45 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Thomas Hisch Subject: bug#34855: closed (Re: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call) Message-ID: References: <8336neqel1.fsf@gnu.org> X-Gnu-PR-Message: they-closed 34855 X-Gnu-PR-Package: emacs Reply-To: 34855@debbugs.gnu.org Date: Sat, 23 Mar 2019 06:40:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1553323201-24914-1" This is a multi-part message in MIME format... ------------=_1553323201-24914-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call 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 34855@debbugs.gnu.org. --=20 34855: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34855 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1553323201-24914-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34855-done) by debbugs.gnu.org; 23 Mar 2019 06:39:49 +0000 Received: from localhost ([127.0.0.1]:54925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7aJp-0006TO-Ba for submit@debbugs.gnu.org; Sat, 23 Mar 2019 02:39:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7aJn-0006TC-LA for 34855-done@debbugs.gnu.org; Sat, 23 Mar 2019 02:39:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7aJg-0000Xo-TV; Sat, 23 Mar 2019 02:39:41 -0400 Received: from [176.228.60.248] (port=2406 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h7aJg-0008Tf-8j; Sat, 23 Mar 2019 02:39:40 -0400 Date: Sat, 23 Mar 2019 08:39:38 +0200 Message-Id: <8336neqel1.fsf@gnu.org> From: Eli Zaretskii To: Thomas Hisch In-reply-to: <45469918-436b-67f6-0233-ba5560828995@ims.co.at> (message from Thomas Hisch on Fri, 22 Mar 2019 23:42:35 +0100) Subject: Re: bug#34855: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call References: <8336np3a1w.fsf@gnu.org> <9d877dcf-d29d-1bb4-1c66-e4b72e767d94@ims.co.at> <83sgvp1gbl.fsf@gnu.org> <871s3326zy.fsf@igel.home> <835zsar5dv.fsf@gnu.org> <45469918-436b-67f6-0233-ba5560828995@ims.co.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34855-done Cc: schwab@suse.de, 34855-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Cc: schwab@suse.de, 34855@debbugs.gnu.org > From: Thomas Hisch > Date: Fri, 22 Mar 2019 23:42:35 +0100 > > On 3/22/19 10:00 PM, Eli Zaretskii wrote: > >> Cc: 34855@debbugs.gnu.org > >> From: Thomas Hisch > >> Date: Fri, 22 Mar 2019 21:13:32 +0100 > >> > >> My company surprisingly switched to official (= non self-signed) > >> certificates last week. I've tested my testcode today again with the > >> latest HEAD of the master branch and I can no longer reproduce this issue. > >> > >> I have no idea why the old self-signed certificates caused an issue that > >> is fixed by reverting 84613dae5c34ea742dd9a3e56f5acb55f604b483. > > > > So you are saying that we should close this bug report? > > > Yes, IMO you can close it. Thanks, done. ------------=_1553323201-24914-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Mar 2019 11:17:37 +0000 Received: from localhost ([127.0.0.1]:43049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4OMi-0001aD-HR for submit@debbugs.gnu.org; Thu, 14 Mar 2019 07:17:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4OMg-0001Zz-6s for submit@debbugs.gnu.org; Thu, 14 Mar 2019 07:17:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:58912) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4OMa-0005I2-VW for submit@debbugs.gnu.org; Thu, 14 Mar 2019 07:17:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4OMZ-0007eT-Du for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 07:17:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4O7d-0005ea-CO for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 07:02:02 -0400 Received: from mail.ims.co.at ([81.223.138.19]:41877) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4O7c-0005bQ-TS for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 07:02:01 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.ims.co.at (Postfix) with ESMTP id 3A59C137F1 for ; Thu, 14 Mar 2019 12:01:57 +0100 (CET) X-Virus-Scanned: amavisd-new at ims.co.at Received: from mail.ims.co.at ([127.0.0.1]) by localhost (mail.ims.co.at [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kDpR5VEt07Ih for ; Thu, 14 Mar 2019 12:01:55 +0100 (CET) Received: by mail.ims.co.at (Postfix, from userid 1000) id 1A7F613801; Thu, 14 Mar 2019 12:01:55 +0100 (CET) Received: from srv-xchg.ims.co.at (unknown [10.98.20.61]) by mail.ims.co.at (Postfix) with ESMTPS id 16621137F1 for ; Thu, 14 Mar 2019 12:01:55 +0100 (CET) Received: from PC-16609.ims.co.at (192.168.100.240) by srv-xchg-01.ims.co.at (10.120.20.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Thu, 14 Mar 2019 12:01:55 +0100 To: From: Thomas Hisch Subject: 27.0.50; url-retrieve-synchronously Bad request Error every 2nd call Message-ID: Date: Thu, 14 Mar 2019 12:01:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US X-Originating-IP: [192.168.100.240] X-ClientProxiedBy: srv-xchg-02.ims.co.at (10.120.20.62) To srv-xchg-01.ims.co.at (10.120.20.61) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.223.138.19 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) When I try to connect to our local gerrit server (https, using a custom CAcert) every second request fails: (400 bad request error) When I perform the test in emacs 26.1 (installed via the fedora package manager) all request are successfull. This is the script I'm using for my tests: (require 'auth-source) (require 'json) (require 'url) (require 'url-http) (require 'url-vars) (require 'subr-x) (defcustom ims-gerrit-host "gerrit.ims.co.at" "hostname of the gerrit instance" :group 'ims-jira :type 'string) (defun ims-gerrit-authentication () "Return an encoded string with jira username and password." (let ((pass-entry (auth-source-user-and-password ims-gerrit-host))) (if-let ((username (nth 0 pass-entry)) (password (nth 1 pass-entry))) (base64-encode-string (concat username ":" password))))) (defun ims-gerrit--get-auth-headers () "Helper function to setup auth header for gerrit url call." `(("Content-Type" . "application/x-www-form-urlencoded") ("Authorization" . ,(concat "Basic " (ims-gerrit-authentication))))) (defun ims-gerrit--retrieve-page-as-json (path) "Shortcut for gerrit api PATH to return valid json." (let ((url-request-extra-headers (ims-gerrit--get-auth-headers))) (with-current-buffer (url-retrieve-synchronously (concat "https://" ims-gerrit-host path)) (goto-char (point-min)) (re-search-forward "^$") (delete-region (point) (point-min)) ;; FIXME (buffer-string)) ;; (json-read-from-string (buffer-string))) )) (defun gerrit-get-server-version () (interactive) (switch-to-buffer "*gerritests*") (erase-buffer) (insert (emacs-version)) (insert ?\n) (dolist (loopvar `(0 1 2 3 4 5 6 7 8)) (insert (format "\n##### %d\n" loopvar)) (insert (prin1-to-string (ims-gerrit--retrieve-page-as-json "/config/server/version"))))) The emacs 27.0 build, where the test fails, was build be me locally. Could it be that something between emacs 26.1 and the HEAD of master broke sth? This is the ouput I get in emcas 27.0 (as you can see every 2nd request is empty) GNU Emacs 27.0.50 (build 99, x86_64-pc-linux-gnu, GTK+ Version 3.24.1) of 2019-03-14 ##### 0 "" ##### 1 " )]}' \"2.16.2\" " ##### 2 "" ##### 3 " )]}' \"2.16.2\" " ##### 4 "" ##### 5 " )]}' \"2.16.2\" " ##### 6 "" ##### 7 " )]}' \"2.16.2\" " ##### 8 "" Regards Thomas In GNU Emacs 27.0.50 (build 99, x86_64-pc-linux-gnu, GTK+ Version 3.24.1) of 2019-03-14 built on PC-16609.ims.co.at Repository revision: 020e69d992c98fd852e835c9bd707a8d137090f2 Repository branch: master Windowing system distributor 'Fedora Project', version 11.0.12003000 System Description: Fedora 29 (Workstation Edition) Recent messages: Mark set Quit Saving file=20 /home/thomas.hisch/gitrepos/dotfiles/emacs.d/user-lisp/gerrit-urltest.el.= .. Wrote=20 /home/thomas.hisch/gitrepos/dotfiles/emacs.d/user-lisp/gerrit-urltest.el You can run the command =E2=80=98eval-buffer=E2=80=99 with M-x ev-b RET Contacting host: gerrit.ims.co.at:443 completing-read-default: Command attempted to use minibuffer while in=20 minibuffer Quit Making completion list... [2 times] Scanning for dabbrevs...done Configured using: 'configure --prefix=3D/opt/emacs --with-x-toolkit=3Dgtk3 --with-xpm --without-jpeg --without-gif --without-tiff' Configured features: XPM PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS PDUMPER LCMS2 GMP Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-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 Load-path shadows: None found. Features: (shadow sort mail-extr dabbrev emacsbug message dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail mail-utils gnutls network-stream url-cache url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date vc-git diff-mode easymenu easy-mmode elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 65737 7435) (symbols 48 7667 1) (strings 32 23669 1937) (string-bytes 1 709583) (vectors 16 12492) (vector-slots 8 153584 13038) (floats 8 25 80) (intervals 56 379 0) (buffers 992 32)) --------------------------------------------------------------------- Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte=20 Informationen. Wenn Sie nicht der richtige Adressat sind oder diese=20 E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den=20 Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie=20 die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information.=20 If you are not the intended recipient (or have received this e-mail=20 in error) please notify the sender immediately and destroy this e-mail.=20 Any unauthorized copying, disclosure or distribution of the material=20 in this e-mail is strictly prohibited IMS Nanofabrication GmbH FN: 208021 p, FB-Gericht: Wien; Sitz: Schreygasse 3, 1020, Vienna (Austria),Tel. +43 1 214 48 94;=20 E-Mail: imsoffice@ims.co.at; DVR-Nr: 0374369; www.ims.co.at ------------=_1553323201-24914-1--