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

fix/gateway: escape directory redirect url #10649

Merged
merged 8 commits into from
Jan 4, 2025

Conversation

gammazero
Copy link
Contributor

@gammazero gammazero commented Jan 2, 2025

When a director gets redirected to a URL with a treailing slash, special chars in the directory name must be escaped in the redirect URL. This upgrades to a version of box that has that fix.

Depends on: ipfs/boxo#779

Closes #10536

@gammazero gammazero requested a review from a team as a code owner January 2, 2025 10:23
@gammazero gammazero force-pushed the fix-gateway-percent-in-dirname branch from 0d9b9ac to ab6fcdb Compare January 2, 2025 12:14
@gammazero gammazero changed the title fix/gateway: web links for directories with "%" in name fix/gateway: escape directory redirect url Jan 2, 2025
When a director gets redirected to a URL with a treailing slash, special chars in the directory name must be escaped in the redirect URL. This upgrades to a version of box that has that fix.

Closes #10536
@gammazero gammazero force-pushed the fix-gateway-percent-in-dirname branch from ab6fcdb to fe72c26 Compare January 2, 2025 12:21
@gammazero gammazero requested a review from lidel as a code owner January 2, 2025 18:37
@gammazero gammazero merged commit b7cc47a into master Jan 4, 2025
14 checks passed
@gammazero gammazero deleted the fix-gateway-percent-in-dirname branch January 4, 2025 00:37
lidel pushed a commit that referenced this pull request Jan 13, 2025
* fix/gateway: escape directory redirect URLs

When a director gets redirected to a URL with a treailing slash, special chars in the directory name must be escaped in the redirect URL. This upgrades to a version of box that has that fix.

Closes #10536

* Fix sharness test for new redirect URLs
* Update to latest boxo
* Use latest gateway-conformance

(cherry picked from commit b7cc47a)
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.

ipfs add doesn't work on files with "%" in the name
2 participants