Kubo mishandles ?
in path names in IPNS context, confusing standards-conformant browsers
#9882
Closed
3 tasks done
Checklist
Installation method
built from source
Version
Config
Description
I thought this was a bug in Chrome extension IPFS Companion but Kubo itself is giving invalid
Location
header. Observe:$ curl --head 'localhost:8080/ipns/mindwar.net/Jim%20Stewartson%20v.%20QAnon%20%E2%80%94%20Can%20you%20spot%20the%20difference%3F.pdf'
It ought to be returning instead:
Location: http://mindwar.net.ipns.localhost:8080/Jim%20Stewartson%20v.%20QAnon%20%E2%80%94%20Can%20you%20spot%20the%20difference%3F.pdf
IPNS redirection breaks on files containing ASCII question mark (
?
), which is totally valid to have in a filename.Cf. ipfs/ipfs-companion#1201
The text was updated successfully, but these errors were encountered: