Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mikolajpp
Copy link
Contributor

The URL parser incorrectly handles the case of a trailing empty segment with extension. Without extension, the parser correctly distinguishes paths like /a/b/ and /a/b by supplying an empty path segment in the former case. When extension follows the last segment, /a/b/.ext, /a/b.ext, the former path is incorrectly parsed in the same way as /a/b.ext.

Perhaps there was some rationale to this behavior in connection with Clay: it will not commit files without non-empty name. However, the URL parser should still be fixed as proposed here, since the parsing simply does not conform to the URL spec and makes it impossible to interface with earth, where dot files are not uncommon.

I have tested scrying on a ship with modified parser at paths like /a/b/.ext, and they fail in the same manner as before, with the benefit that /a/b/.ext no longer means /a/b.ext.

The URL parser incorrectly handles the case of a trailing
empty segment with extension. Without extension, the parser
correctly distinguishes paths like `/a/b/` and `/a/b`.
When extension follows the last segment, `/a/b/.ext`, `/a/b.ext`,
the former path is incorrectly parsed as `/a/b.ext`.
@pkova pkova changed the base branch from develop to next/kelvin/410 August 5, 2024 15:49
@mikolajpp mikolajpp mentioned this pull request Aug 19, 2024
@pkova pkova changed the base branch from next/kelvin/410 to develop August 19, 2024 13:56
@pkova pkova changed the base branch from develop to next/kelvin/409 July 15, 2025 13:04
@pkova pkova merged commit 3a4838b into urbit:next/kelvin/409 Jul 15, 2025
1 check passed
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.

2 participants