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
client: Win32 name aliasing (trailing dot/space, :, 8.3 names) can make two bundle entry paths one file #2746
Found in review of the #2691 fix. Not yet verified on a Windows host.
#2691 makes a reader reject a bundle manifest whose entry paths name one file on a case- or normalization-insensitive file system (decdn_client::bundle::path_collision). Win32 path handling joins more names than case alone:
README and README. (trailing dot)
README and README (trailing space)
README and README::$DATA (stream syntax; : in a segment)
a long name and its 8.3 short name (LONGFI~1.TXT)
safe_join (crates/client/src/bundle/engine.rs) and origin import's validate_relpath (crates/cli/src/commands/manifest.rs) accept each of these: Path::components() returns every one as a single Normal component. If cap-std reaches CreateFileW with normal Win32 path normalization, two entries can land at one file on Windows and the #2691 skip-set poisoning returns there. cap-primitives 4.0.3's Windows path_has_trailing_dot returns false on purpose, so it does not appear to refuse them.
Confirm on Windows whether README / README. / README resolve to one file through Landing (cap-std)
If they do: reject a segment that ends in . or a space, or that contains :, in safe_join and validate_relpath on every platform (or fold them in path_key), and add a Path-safety rule to adr/appendix-bundles.md
Decide on 8.3 short names (~N segments): reject, or document why they cannot collide
Activity