#4005:
pkgs.fedoraproject.org content encoding misconfiguration
--------------------------+-----------------------------------------
Reporter: dsheets | Owner: webmaster
Type: bug | Status: new
Priority: minor | Milestone: HANDWAVY-FUTURE
Component: Web Content | Version: Production
Severity: Normal | Keywords: encoding apache gzip conneg
Blocked By: | Blocking:
Sensitive: 0 |
--------------------------+-----------------------------------------
= bug description =
$ curl --verbose --write-out
%{http_code}\\n%{content_type}\\n%{filename_effective}\\n --insecure
--retry 10 --retry-delay 2 --compressed -JOL
http://pkgs.fedoraproject.org/repo/pkgs/ocaml-
ulex/ulex-1.1.tar.gz/ce49a013bc4a0e085977a9fe157017bf/ulex-1.1.tar.gz
says
*snip*
< Content-Type: application/x-gzip
< Content-Encoding: x-gzip
*snip*
but
$ file ulex-1.1.tar.gz
ulex-1.1.tar.gz: POSIX tar archive (GNU)
= bug analysis =
This causes scripted downloads to fail. Particularly, the OCaml Package
Manager, OPAM, uses <
https://github.com/OCamlPro/opam-
repository/blob/master/packages/ulex.1.1/url> this URL and fails to gunzip
the tar.
= fix recommendation =
Edit the Apache config which probably contains an AddEncoding directive on
files that match *.gz or something similar. This is not necessary and
confuses clients (browsers do frightening and terrible sniffing that
scripts shouldn't have to).
--
Ticket URL: <
https://fedorahosted.org/fedora-infrastructure/ticket/4005>
Fedora Infrastructure <
http://fedoraproject.org/wiki/Infrastructure>
Fedora Infrastructure Project for Bugs, feature requests and access to our source code.