Bug 979582

Summary: nectar should compensate for servers that send wrong content-encoding header
Product: [Retired] Pulp Reporter: Michael Hrivnak <mhrivnak>
Component: z_otherAssignee: Michael Hrivnak <mhrivnak>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.2 BetaKeywords: Triaged
Target Milestone: ---   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-10 15:44:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Hrivnak 2013-06-28 20:41:02 UTC
The following bug details the type of broken http server that causes a problem:

https://fedorahosted.org/fedora-infrastructure/ticket/3859

In this case, where most download clients (curl, chrome, firefox, etc) will download a gzipped file and leave it compressed, the "requests" library follows the letter of RFC2616 and unzips the file. This causes a problem for us, because the code requesting a download expects to find a file that is still gzipped.

This caused a complete failure to sync a fedora 18 repo. (link in the bug listed above)

Nectar should thus make some intelligent decisions about ignoring the content-encoding header when its value is "x-gzip" and the file ends in '.gz'.

Comment 1 Michael Hrivnak 2013-07-01 20:01:02 UTC
https://github.com/pulp/nectar/pull/5

Comment 2 Jeff Ortel 2013-07-03 22:11:16 UTC
build: 2.2.0-18.beta

Comment 3 Jeff Ortel 2013-07-03 22:14:53 UTC
Correction:

build: 2.2.0-0.18.beta

Comment 4 Preethi Thomas 2013-07-10 06:19:29 UTC
verified
[root@ibm-x3550m3-11 ~]# rpm -qa |grep pulp-server
pulp-server-2.2.0-0.20.beta.fc18.noarch
[root@ibm-x3550m3-11 ~]# 


[root@ibm-x3550m3-11 ~]# pulp-admin repo list
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+




Id:                  f18
Display Name:        f18
Description:         None
Content Unit Counts: 
  Package Category:       12
  Package Group:          151
  Rpm:                    33863
  Yum Repo Metadata File: 1

Comment 5 Preethi Thomas 2013-09-10 15:44:57 UTC
2.2 released
http://repos.fedorapeople.org/repos/pulp/pulp/stable/2.2/