Project

General

Profile

Actions

Bug #31001

closed

Pulp3 can't sync from password protected repos

Added by Mate Mikulic over 3 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I use a repo which requires authentication. http://updateinfo-origin.cefs.steve-meier.de/7-sync/updates/x86_64/repodata/ All the files are public except "somehash-updateinfo.xml.gz" which is hidden and password protected. Since upgrade to Foreman 2.1 this has stopped working. Error is "file not found", however, file is there as I see it from my browser when I authenticate and can download it with wget when passing credentials in request.

From tests I've done this is my conclusion:

When repo contains a hidden password protected file, while syncing, pulp3 gets info that this file exists from repomd.xml list, it seem it will try to download it without passing credentials, which will end in "404 Not found".

On pulp2 on the other hand, this will work without issues. As it tries to download files, for each file mentioned in repomd.xml, while downloading it will pass credentials and thus hidden password protected files will be downloaded successfully.

Workaround until this is fixed is: Clone that public repo locally somewhere in your private network and remove hide/password protection from files. And point Foreman to sync from there.

More details on this in this thread: https://community.theforeman.org/t/pulp-3-cant-work-with-yum-repo-requiring-auth-foreman-2-1-2/20510

Actions #1

Updated by Jonathon Turel over 3 years ago

  • Category set to Repositories
  • Target version set to Katello 3.16.2
  • Triaged changed from No to Yes
Actions #2

Updated by Ian Ballou over 3 years ago

  • Target version changed from Katello 3.16.2 to 1341
Actions #3

Updated by Ian Ballou over 3 years ago

  • Target version changed from 1341 to Katello 3.17.2
Actions #4

Updated by Mate Mikulic over 3 years ago

Issue is no longer present since 3.17.0 This can be closed.

Actions #5

Updated by Chris Roberts about 3 years ago

  • Status changed from New to Rejected
  • Target version changed from Katello 3.17.2 to Katello Recycle Bin
Actions

Also available in: Atom PDF