Skip to content
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

Unable to handle urls with where the package name has + in the name #571

Closed
rossengeorgiev opened this issue Jul 6, 2022 · 3 comments · Fixed by #573
Closed

Unable to handle urls with where the package name has + in the name #571

rossengeorgiev opened this issue Jul 6, 2022 · 3 comments · Fixed by #573

Comments

@rossengeorgiev
Copy link

Version

katello-4.4.1-1.el7.noarch
tfm-pulpcore-python3-pulp-deb-2.16.2-1.el7.noarch
tfm-rubygem-pulp_deb_client-2.16.0-1.el7.noarch

Describe the bug
One can argue that this is not a bug, but the repository works correctly under apt thus I consider it a bug.

Repo in question: https://packages.confluent.io/clients/deb

Error when attempting to sync:

404, message='Not Found', url=URL('https://packages.confluent.io/clients/deb/pool/main/c/confluent-libserdes/confluent-libserdes++1_8.0.0-1.cflt~ubu20_amd64.deb')

The error is caused by + not being encoded as %2B when making the request for the package. Tests with curl:

$ curl -I 'https://packages.confluent.io/clients/deb/pool/main/c/confluent-libserdes/confluent-libserdes++1_8.0.0-1.cflt~ubu20_amd64.deb'
HTTP/1.1 404 Not Found
Content-Type: application/xml
Connection: keep-alive
Date: Thu, 30 Jun 2022 15:28:04 GMT
Server: AmazonS3
X-Cache: Error from cloudfront
Via: 1.1 b92a7362e458b7339c38e84d8768135e.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MAN50-C3
Age: 7

$ curl -I 'https://packages.confluent.io/clients/deb/pool/main/c/confluent-libserdes/confluent-libserdes%2B%2B1_8.0.0-1.cflt~ubu20_amd64.deb'
HTTP/1.1 200 OK
Content-Type: application/x-debian-package
Content-Length: 17604
Connection: keep-alive
Date: Thu, 30 Jun 2022 15:28:20 GMT
Last-Modified: Fri, 24 Jun 2022 23:48:11 GMT
ETag: "48f1c14a12193754eb3ae198992e362e" 
Accept-Ranges: bytes
Server: AmazonS3
X-Cache: Miss from cloudfront
Via: 1.1 b5e57b301d7ec04bd5d65f7619eb0f34.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MAN50-C3

To Reproduce
See above

Expected behavior
Be able to sync the repository

Additional context
Copied from https://projects.theforeman.org/issues/35148

@quba42
Copy link
Collaborator

quba42 commented Jul 7, 2022

It looks like pulp_rpm has encountered and fixed the exact same issue. See here: https://github.com/pulp/pulp_rpm/blob/main/pulp_rpm/app/downloaders.py#L68

@quba42
Copy link
Collaborator

quba42 commented Jul 7, 2022

I have requested the pulp_rpm solution be transferred to pulpcore so we can also use it in pulp_deb. That being said, we don't need to wait for that to solve this on the pulp_deb side for now.

hstct added a commit to ATIX-AG/pulp_deb that referenced this issue Jul 11, 2022
hstct added a commit to ATIX-AG/pulp_deb that referenced this issue Jul 11, 2022
hstct added a commit to ATIX-AG/pulp_deb that referenced this issue Jul 11, 2022
hstct added a commit to ATIX-AG/pulp_deb that referenced this issue Jul 12, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes pulp#571
quba42 pushed a commit that referenced this issue Jul 12, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571
patchback bot pushed a commit that referenced this issue Jul 12, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571

(cherry picked from commit ccf3f47)
patchback bot pushed a commit that referenced this issue Jul 12, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571

(cherry picked from commit ccf3f47)
patchback bot pushed a commit that referenced this issue Jul 12, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571

(cherry picked from commit ccf3f47)
quba42 pushed a commit that referenced this issue Jul 12, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571

(cherry picked from commit ccf3f47)
quba42 pushed a commit that referenced this issue Jul 12, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571

(cherry picked from commit ccf3f47)
quba42 pushed a commit that referenced this issue Jul 12, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571

(cherry picked from commit ccf3f47)
@rossengeorgiev
Copy link
Author

Great work! Thanks

patchback bot pushed a commit that referenced this issue Jul 14, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571

(cherry picked from commit ccf3f47)
quba42 pushed a commit that referenced this issue Jul 14, 2022
This can maybe replaced if pulp/pulpcore#2950 is solved.

closes #571

(cherry picked from commit ccf3f47)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants