Issue #1977
Updated by mhrivnak over 8 years ago
If you perform a sync where all of these are true:
- the proxy requires auth
- the repo requires auth
- repo auth credentials are specified in the URL
You will see this error message:
RPM1004: Error retrieving metadata: Not found
If any of those three conditions are not true, the error will not occur.
Assuming you have an authenticated proxy configured in /etc/pulp/server/plugins.conf.d/yum_importer.json, this will work because credentials are not in the URL:
<pre>
pulp-admin rpm repo create --repo-id=rplevka --feed=https://rplevka.fedorapeople.org/fakerepo01/ --basicauth-user=admin --basicauth-pass=changeme
pulp-admin rpm repo sync run --repo-id=rplevka
</pre>
And this will fail:
<pre>
pulp-admin rpm repo create --repo-id=rplevka --feed=https://admin:changeme@rplevka.fedorapeople.org/fakerepo01/
pulp-admin rpm repo sync run --repo-id=rplevka
</pre>
Pulp previously did not have explicit options for setting the basic auth credentials, so users' only option was to put them in the URL. Even though that's deprecated per RFC and is generally not advisable, we should continue supporting those users.
This bug likely affects other plugins as well. I haven't tried reproducing, but at least one user reported the same problem doing a puppet sync.