Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
High
-
Resolution: Not a Bug
-
Affects Version/s: 5.9.0
-
Fix Version/s: None
-
Component/s: Remote Repository , RPM
-
Labels:None
Description
When configuring a yum repository to the below yum repository endpoint:
http://www.nic.funet.fi/pub/mirrors/fedora.redhat.com/pub/epel/7Server/x86_64
yum install/update would not work and the below error is thrown:
https://admin:<api-key>@mohammadt.jfrog.io/mohammadt/rpm/7Server/x86_64/repodata/f2f5ddd4101a588a7c6eb60e20c45756b87e8123994fe1b3f0116a57ef74ce89-comps-Everything.x86_64.xml.gz: [Errno 14] curl#63 - "Callback aborted"ETA
Seems like this error is thrown, because we extract the content of the file: f2f5ddd4101a588a7c6eb60e20c45756b87e8123994fe1b3f0116a57ef74ce89-comps-Everything.x86_64.xml.gz, while the client does not expect it to be extracted.
If we will try to download this file directly from the remote endpoint:
$ curl http://www.nic.funet.fi/pub/mirrors/fedora.redhat.com/pub/epel/7Server/x86_64/repodata/f2f5ddd4101a588a7c6eb60e20c45756b87e8123994fe1b3f0116a57ef74ce89-comps-Everything.x86_64.xml.gz -O
And then though Artifactory
$ curl https://admin:<api-key>@mohammadt.jfrog.io/mohammadt/rpm/7Server/x86_64/repodata/f2f5ddd4101a588a7c6eb60e20c45756b87e8123994fe1b3f0116a57ef74ce89-comps-Everything.x86_64.xml.gz -O
We will see that the file from the endpoint is compressed and from Artifactory is extracted.
Steps to reproduce:
1. create remote yum repo with the below URL:
http://www.nic.funet.fi/pub/mirrors/fedora.redhat.com/pub/epel/
2. create this file /etc/yum.repos.d/artifactory.repo with the below content:
[Artifactory]
name=Artifactory
baseurl=http://<ARTIFACTORY_URL>/artifactory/rpm/7Server/x86_64/
enabled=1
gpgcheck=0
3. run $yum update
4. you will get the callback aborted error.