-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Regression] pulp fails downloading packages with special symbols from Amazon Linux repositories #2315
Comments
From: micuz (micuz) fix for 9464 could have regressed this but I'm not sure |
From: @ggainey (ggainey) Regression caused by the fix for #9464. IRC discussion:
This diff fixes the problem: (pulp3) (3.16) ~/github/Pulp3/pulp_rpm $ git diff
diff --git a/pulp_rpm/app/downloaders.py b/pulp_rpm/app/downloaders.py
index 67bcb948..bd5a102b 100644
--- a/pulp_rpm/app/downloaders.py
+++ b/pulp_rpm/app/downloaders.py
@@ -69,8 +69,8 @@ class RpmDownloader(HttpDownloader):
# Let's make them happy - while not urlencoding **anything else**
parsed = urlparse(self.url)
new_path = quote(unquote(parsed.path), safe=":/")
- parsed._replace(path=new_path)
- new_url = urlunparse(parsed)
+ from urllib.parse import urljoin
+ new_url = urljoin(self.url, new_path)
if self.sles_auth_token:
auth_param = f"?{self.sles_auth_token}"
(pulp3) (3.16) ~/github/Pulp3/pulp_rpm $ |
From: pulpbot (pulpbot) PR: #2160 |
From: @ggainey (ggainey) Applied in changeset commit:d903ec9a8d473f57f9fab28410c4088806c4eb0c. |
Author: micuz (micuz)
Redmine Issue: 9529, https://pulp.plan.io/issues/9529
Fresh installed Pulp 3.16.0.
Probably regression of issue 8875.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: