You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Verify v2 client requesting directory hosted with intermediate path elements sets subdirectory ID correctly #416
If the directory is deployed behind e.g. a reverse proxy and requests are rewritten exposing the public URI with a path, the current behavior of the pj_url derivation is to replace the path in its entirety.
In some places in the code .join is used, appending the subdirectory ID but the sender uses set_path as well.
Because of our tangled arch this was difficult to verify even though it was probably resolved. Leaving this open until we have a proper test that a directory hosted with additional path elements beyond the host is verified as functional in the v2 flow.
changed the title [-]Don't use set_path to set subdirectory ID[/-][+]Verify v2 client requesting directory hosted with intermediate path elements sets subdirectory ID correctly[/+]on Dec 29, 2024
This issue is no longer relevant because since RFC 9540 support the directory's gateway must be /.well-known/ohttp-gateway and it doesn't make much sense to allow the directory target resource to have additional path components.
Activity
Join subdir to base pj URL to preserve path
Join subdir to base pj URL to preserve path
Join subdir to base pj URL to preserve path
Join subdir to base pj URL to preserve path
Join subdir to base pj URL to preserve path
DanGould commentedon Dec 29, 2024
Fixed by #448
DanGould commentedon Dec 29, 2024
Because of our tangled arch this was difficult to verify even though it was probably resolved. Leaving this open until we have a proper test that a directory hosted with additional path elements beyond the host is verified as functional in the v2 flow.
[-]Don't use set_path to set subdirectory ID[/-][+]Verify v2 client requesting directory hosted with intermediate path elements sets subdirectory ID correctly[/+]arminsabouri commentedon Sep 15, 2025
cc @nothingmuch please provide closing rationale
nothingmuch commentedon Sep 15, 2025
This issue is no longer relevant because since RFC 9540 support the directory's gateway must be
/.well-known/ohttp-gatewayand it doesn't make much sense to allow the directory target resource to have additional path components.