#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).
#4005: pkgs.fedoraproject.org content encoding misconfiguration -----------------------------------------+------------------------------ Reporter: dsheets | Owner: webmaster Type: bug | Status: closed Priority: minor | Milestone: HANDWAVY-FUTURE Component: Web Content | Version: Production Severity: Normal | Resolution: fixed Keywords: encoding apache gzip conneg | Blocked By: Blocking: | Sensitive: 0 -----------------------------------------+------------------------------ Changes (by kevin):
* resolution: => fixed * status: new => closed
Comment:
Fixed.
Please let us know if you still see any issues with it.
websites@lists.fedoraproject.org