From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: strange 400 Bad Request with Emacs 26 and GNU ELPA Date: Wed, 20 Oct 2021 18:47:19 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000b7eb9405cecb88a3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34774"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 20 18:48:22 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdElK-0008sF-7v for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 18:48:22 +0200 Original-Received: from localhost ([::1]:44690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdElI-0007VN-NO for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 12:48:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdEkZ-0006Hv-8O for emacs-devel@gnu.org; Wed, 20 Oct 2021 12:47:35 -0400 Original-Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:39766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdEkX-0007gq-7q for emacs-devel@gnu.org; Wed, 20 Oct 2021 12:47:34 -0400 Original-Received: by mail-ed1-x529.google.com with SMTP id ec8so28893761edb.6 for ; Wed, 20 Oct 2021 09:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=hgyohtVnPKfq3GxetstQ/3s0M1EvCj/339t20vBwnt8=; b=dqjkhlbhhnYKL0aFCI3HJv3LBFKR0Io1Q6XbjhOXebFOm8KOnGtjMT/DSkp9rEYADK +gY2LBmF2T9B+Iz00N15BjQR5nGjSNYOfy/lfkbsSsBmIE5i3bGIARidLs8M6Q+7Vle1 kiH4xhF4iFAKFjgvRFILGZm0ezf65G8rD21DUy6VlRw+FrybQAJh8ogJdM5sgEHOWRuO qsYw8n9eFfbCLaATu4vES9ImcYxW/mkgWRr6Mr04hImbxpbVcc/rKIP2klcxWSqtLgh5 Ok3wgDPhgTObVEZtKuZxil3FouSgtbddSUKRMhaXk9/iUVlAHjctzjvuJC/U+OYbt0v8 IEzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hgyohtVnPKfq3GxetstQ/3s0M1EvCj/339t20vBwnt8=; b=dzEuomoNqg27/O4mMGuzOeCB/Ob9fStAID+y0XbLy6gAF0cmkCW6cqZyKpjVWoV67W Tq4tFKdZblI8JgHFXwJWh4lv/XE+X75Fqd4tcp80J9zupTk0kjGogGRj4iEYUcfYup3F pegKdAOpuCHrMasK/p8eIYkBK4IcraaGI+Twx2nWLSjoelHsZ2sKG+Ze0qpazXClm1v4 OfyggDgzik262JtfgSd0q0T0Rc12WrdguDCTqBJakdKlcn8R27PQoYfTKeqSvZS3cp4g o9FpkD9ildXsPYNRg3yeJjtbKhnL0andFSIDs1QLqdr/aiW7Bz5SjkabKoSO1F2PUrQp mbRg== X-Gm-Message-State: AOAM531D2FQpq3XXIFF7WYUKZE1I7rAqKmwdlxv9wg930xFkD1qhi2Kw Th13y8sE7emcDe8sBxv2Hm0EDUHrA9nWPxHQzzW7E5kifFU+ X-Google-Smtp-Source: ABdhPJxl4JEKgXYG+qpkfGFRm025FURAuSGvcTSfAlgtFaetvavgcw9UKvqnVhIO62VHtCFiK8O12BDKUwmlTf9pBh4= X-Received: by 2002:aa7:cd88:: with SMTP id x8mr49340edv.203.1634748450960; Wed, 20 Oct 2021 09:47:30 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=pogonyshev@gmail.com; helo=mail-ed1-x529.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277457 Archived-At: --000000000000b7eb9405cecb88a3 Content-Type: multipart/alternative; boundary="000000000000b7eb8f05cecb88a1" --000000000000b7eb8f05cecb88a1 Content-Type: text/plain; charset="UTF-8" Hi, recently a bug has been reported to me (it is marked as closed now, but only in Eldev itself, in that I added a workaround for it): https://github.com/doublep/eldev/issues/52 I managed to reduce the way to reproduce it to a fairly short piece of Elisp code that doesn't depend on Eldev, i.e. is "pure". The workaround I used is also present in the attached script, but commented out. In short: - run attached script as $ emacs --batch --load bad-request.el using Emacs 26.x (important!); - observe that it dies with error "https://elpa.gnu.org/packages/org-edna-1.1.2.tar: Bad Request" The script tries two install two packages (Org and Org-edna) from GNU ELPA. The second download dies with the error shown above. If the workaround line is uncommented, i.e. if HTTP(S) connection to GNU ELPA is *not* reused for downloading the second package, it succeeds. I'm not sure if it is a bug with GNU ELPA, Emacs 26 or something else. Paul --000000000000b7eb8f05cecb88a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

recently a bug has been reported to me (it= is marked as closed
now, but only in Eldev itself, in that I added a wo= rkaround for
it):

=C2=A0 =C2=A0 https://github.com/doublep/eldev/issues/52
I managed to reduce the way to reproduce it to a fairly short piece of
= Elisp code that doesn't depend on Eldev, i.e. is "pure". The<= br>workaround I used is also present in the attached script, but
comment= ed out.

In short:
- run attached script as

=C2=A0 =C2=A0 $= emacs --batch --load bad-request.el

=C2=A0 using Emacs 26.x (import= ant!);

- observe that it dies with error
=C2=A0 "https://elpa.gnu.org/pack= ages/org-edna-1.1.2.tar: Bad Request"

The script tries two = install two packages (Org and Org-edna) from GNU
ELPA.=C2=A0 The second = download dies with the error shown above.=C2=A0 If the
workaround line i= s uncommented, i.e. if HTTP(S) connection to GNU ELPA
is *not* reused fo= r downloading the second package, it succeeds.

I'm not sure if i= t is a bug with GNU ELPA, Emacs 26 or something else.

Paul
--000000000000b7eb8f05cecb88a1-- --000000000000b7eb9405cecb88a3 Content-Type: text/x-emacs-lisp; charset="US-ASCII"; name="bad-request.el" Content-Disposition: attachment; filename="bad-request.el" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kuzqyfoc0 KHJlcXVpcmUgJ3BhY2thZ2UpCgooZGVsZXRlLWRpcmVjdG9yeSAiL3RtcC80MDAtYmFkLXJlcXVl c3QiIHQpCgooc2V0ZiB1c2VyLWVtYWNzLWRpcmVjdG9yeSAiL3RtcC80MDAtYmFkLXJlcXVlc3Qv LmVtYWNzIgogICAgICBwYWNrYWdlLXVzZXItZGlyICIvdG1wLzQwMC1iYWQtcmVxdWVzdC9lbHBh IgogICAgICBwYWNrYWdlLWFyY2hpdmVzICcoKCJnbnUiIC4gImh0dHBzOi8vZWxwYS5nbnUub3Jn L3BhY2thZ2VzLyIpKSkKCihwYWNrYWdlLWluaXRpYWxpemUpCihwYWNrYWdlLXJlZnJlc2gtY29u dGVudHMpCihwYWNrYWdlLXJlYWQtYWxsLWFyY2hpdmUtY29udGVudHMpCgoobGV0ICgoaW5oaWJp dC1tZXNzYWdlIHQpKQogIChwYWNrYWdlLWluc3RhbGwtZnJvbS1hcmNoaXZlIChjYWRyIChhc3Nx ICdvcmcgcGFja2FnZS1hcmNoaXZlLWNvbnRlbnRzKSkpCiAgOyhjbHJoYXNoIHVybC1odHRwLW9w ZW4tY29ubmVjdGlvbnMpICA7IFdPUktBUk9VTkQKICAocGFja2FnZS1pbnN0YWxsLWZyb20tYXJj aGl2ZSAoY2FkciAoYXNzcSAnb3JnLWVkbmEgcGFja2FnZS1hcmNoaXZlLWNvbnRlbnRzKSkpKQo= --000000000000b7eb9405cecb88a3--