Bug 979582 - nectar should compensate for servers that send wrong content-encoding header
Summary: nectar should compensate for servers that send wrong content-encoding header
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: 2.2 Beta
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.2.0
Assignee: Michael Hrivnak
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-28 20:41 UTC by Michael Hrivnak
Modified: 2013-09-10 15:44 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-10 15:44:57 UTC
Embargoed:


Attachments (Terms of Use)

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/


Note You need to log in before you can comment on or make changes to this bug.