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

services: proper escape the fiels key in links generation #1941

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

jrcastro2
Copy link
Contributor

@jrcastro2 jrcastro2 commented Jan 29, 2025

{+key} was keeping special characters unescaped by uritemplate

Tested locally upload of files within a directory, it seems to work fine.

Copy link
Contributor

@sakshamarora1 sakshamarora1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@zzacharo zzacharo merged commit a6285f8 into inveniosoftware:master Feb 4, 2025
4 checks passed
@@ -131,14 +133,15 @@ def test_iiif_info(
## Testing with filename with a slash ##

file_id = "test/image.png"
encoded_file_id = quote(file_id, safe="")
Copy link
Contributor

@kpsherva kpsherva Feb 5, 2025

Choose a reason for hiding this comment

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

assert encoded_file_id == "test%BLAimage.png"

let's also check against a file with #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants