-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ipfs add doesn't work on files with "%" in the name #10536
Comments
bjl73o
added
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
labels
Oct 4, 2024
gammazero
added a commit
to ipfs/boxo
that referenced
this issue
Dec 30, 2024
When the original URl contains special characters, such as "%", the correcponding redirect URL must escape these characters. Fixes ipfs/kubo#10536
gammazero
added a commit
to ipfs/boxo
that referenced
this issue
Dec 30, 2024
When the original URl contains special characters, such as "%", the correcponding redirect URL must escape these characters. Fixes ipfs/kubo#10536
Files with a percent in their name appear to work. Directories with a percent in their name do not work:
These are fixed by adding a trailing "/" to the link name in the generated web page. |
gammazero
added a commit
to ipfs/boxo
that referenced
this issue
Jan 2, 2025
Directories with a "%" in their name do not work correctly when using the link on the generated web page. Adding a trailing "/" to the link name of these subdirectories fixes this. Fixes issue ipfs/kubo#10536
3 tasks
gammazero
added a commit
that referenced
this issue
Jan 2, 2025
Directories with a "%" in their name do not work correctly when using the link on the generated web page. Ubgrade to boxo version with the fix that adds a trailing "/" to the subdirectory names. Closes #10536
gammazero
added a commit
to ipfs/boxo
that referenced
this issue
Jan 2, 2025
Directories with a "%" in their name do not work correctly when when redirected to a URL with a trailing slash. When the original URl contains special characters, such as "%", the correcponding redirect URL must escape these characters. Fixes issue ipfs/kubo#10536
gammazero
added a commit
that referenced
this issue
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
added a commit
that referenced
this issue
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
added
P0
Critical: Tackled by core team ASAP
and removed
need/triage
Needs initial labeling and prioritization
labels
Jan 2, 2025
gammazero
added a commit
to ipfs/boxo
that referenced
this issue
Jan 3, 2025
* Fix redirect for directories to escape special chars in URL Directories with a "%" in their name do not work correctly when when redirected to a URL with a trailing slash. When the original URl contains special characters, such as "%", the correcponding redirect URL must escape these characters. Fixes issue ipfs/kubo#10536 * Test against new gateway-conformance test version
gammazero
added a commit
that referenced
this issue
Jan 4, 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
lidel
pushed a commit
that referenced
this issue
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
Checklist
Installation method
ipfs-desktop
Version
Config
Description
Create an empty folder
Create an empty file in that folder, and name it anything. Include % in the name.
Add the folder to Kubo with ipfs add -r path
added QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn path/100
added QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn path/100%
added QmSSYRtVFpWBEXCKKJbLv78ixGYXZhs5gX6rVdYjyhYgw4 path
Copy the folder CID from the terminal
Open the link containing % in the browser
Observe the error: 400 Bad Request
The text was updated successfully, but these errors were encountered: