Summary: | dev-lang/erlang: upstream tar.gz files in SRC_URI are served with incorrect "Content-Encoding: x-gzip" header | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Patrick Lauer <patrick> |
Component: | Repoman | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, dev-portage, mgorny, pacho, toralf |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.erlang.org/browse/ERL-436 | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=640948 https://bugs.gentoo.org/show_bug.cgi?id=639752 https://bugs.gentoo.org/show_bug.cgi?id=636238 https://bugs.gentoo.org/show_bug.cgi?id=641686 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Patrick Lauer
![]() There was a user on IRC who encountered something like this; it turns out he was using a misconfigured proxy server. Are you sure this is wget's fault? (In reply to Patrick Lauer from comment #0) > which should have --compression=none injected into the options Or --compression=auto so wget will do the right thing whether the file is sent deflated or not. This also sounds like a whet bug considering the docs you pasted say the auto behaviour is the default, which it's clearly not. (In reply to Mike Gilbert from comment #1) Nevermind. I can reproduce this without any proxy involved. Tested locally with --compress=none in FETCHCOMMAND, filesize is now as intended. Copying wget maintainer since this new behavior is pretty questionable. *** Bug 640948 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 636238 *** The erlang.org http server incorrectly sets "Content-Encoding: x-gzip":
> $ curl -IL http://www.erlang.org/download/otp_src_20.1.tar.gz
> HTTP/1.1 301 Moved Permanently
> Server: nginx
> Date: Wed, 13 Dec 2017 22:09:45 GMT
> Content-Type: text/html
> Content-Length: 178
> Connection: keep-alive
> Location: http://erlang.org/download/otp_src_20.1.tar.gz
>
> HTTP/1.1 200 OK
> Date: Wed, 13 Dec 2017 22:15:03 GMT
> Server: Apache/1.3.42 (Unix)
> Last-Modified: Tue, 26 Sep 2017 10:17:28 GMT
> ETag: "22319d-534bcd8-59ca2938"
> Accept-Ranges: bytes
> Content-Length: 87342296
> Content-Type: application/x-tar
> Content-Encoding: x-gzip
(In reply to Zac Medico from comment #8) > The erlang.org http server incorrectly sets "Content-Encoding: x-gzip": If you add the "--compressed" option, curl sends "Accept-Encoding: deflate, gzip" web server sends "Content-Encoding: gzip", but without re-compressing the data stream. So yeah, this seems to be a config issue on the web server, but one that would be easily worked around by updating FETCHCOMMAND. Gentoo would be great (again) if people spent as much time reporting problems to server admins as they do shoving problems under the carpet. The upstream web server does not obey the http spec with respect to the "Content-Encoding: x-gzip" header, so an argument can be made to switch the files in SRC_URI to mirror://gentoo until the problem has been fixed upstream. I think this is solved now with ebuilds moving to the usage of github tarballs |