From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Nic Ferrier <nferrier@ferrier.me.uk>
Cc: emacs-devel@gnu.org
Subject: Re: https and emacs and package archives
Date: Mon, 27 Oct 2014 13:32:07 -0400 [thread overview]
Message-ID: <jwvtx2pe83c.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <874muph25d.fsf@ferrier.me.uk> (Nic Ferrier's message of "Mon, 27 Oct 2014 17:07:42 +0000")
> So switching back to HTTPS, what is going wrong?
> The depends of a package are all downloaded with HTTPS fine. But then:
> GET /packages/elpakit-1.1.1.el HTTP/1.1..
> MIME-Version: 1.0..
> Connection: keep-alive..
> Extension: Security/Digest Security/SSL..
> Host: marmalade-repo.org..
> Accept-encoding: gzip..Accept: */*..
> User-Agent: URL/Emacs....
> ##
> T 80.69.77.43:443 -> 172.30.1.18:48975 [AP]
> HTTP/1.1 400 Bad Request..
> Server: nginx/1.7.1..
> Date: Mon, 27 Oct 2014 16:51:04 GMT..
> Content-Type: text/html..
> Content-Length: 270..
> Connection: close....
> <html>..<head><title>
> 400 The plain HTTP request was sent to HTTPS port
> </title></head>.....
I'm not familiar enough with HTTPS to know what "The plain HTTP request
was sent to HTTPS port" means.
> That looks to me like the packaging system is forgetting that the
> package source is HTTPS when it downloads the target package and is
> sending the request as HTTP.
AFAIK, package.el does not pay attention to the transport at all, it
just uses the base-url as-is without ever tweaking it (so it also works
for file:// URLs), so I think it's more likely that the problem is in
the URL.el package rather than in package.el.
> Is this a regression? Yes. Doing exactly the same thing with my 24.3
> install works fine.
Please make a bug report for it.
> Probably the response to this will be "implement package signing".
It'd be a good idea in any case, indeed.
But we'd still want to fix the problem with https ;-)
Stefan
next prev parent reply other threads:[~2014-10-27 17:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 17:07 https and emacs and package archives Nic Ferrier
2014-10-27 17:32 ` Stefan Monnier [this message]
2014-10-27 17:46 ` Nic Ferrier
2014-10-27 21:43 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvtx2pe83c.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=nferrier@ferrier.me.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.