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

Quote-encode backfill URLs #15503

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Quote-encode backfill URLs #15503

merged 1 commit into from
Feb 28, 2024

Conversation

di
Copy link
Member

@di di commented Feb 28, 2024

@di di requested a review from a team as a code owner February 28, 2024 01:07
Copy link
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One non blocking comment

@@ -95,7 +96,7 @@ def metadata_backfill_individual(request, file_id):
return

base_url = request.registry.settings.get("files.url")
file_url = base_url.format(path=file_.path)
file_url = urllib.parse.quote(base_url.format(path=file_.path), safe=":/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably fine for the backfill, but we've been trying to only use one url parser, and settled on urllib3 - see #14497

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT, I'm not actually seeing a way to do this with urllib3. Given that we're going to be deleting this task in ~1 week, I'm just going to merge this as is!

@di di merged commit f87e97d into pypi:main Feb 28, 2024
17 checks passed
@di di deleted the quote-backfill-urls branch February 28, 2024 16:29
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 this pull request may close these issues.

None yet

2 participants