Activity: sibling folders differing only in case (Docs / docs) share history on case-sensitive stores #982

Closed
opened 2026-10-20 06:58:19 +00:00 by Cordy · 0 comments
Owner

Found in the batch 4 final-fix review (finding 4, 2026-10-20). This predates batch 4; v0.6.350 behaves the same.

What happens: Activity matches paths case-insensitively below the home or space segment (internal/activity/activity.go:221). On a case-sensitive store (posix ext4, s3), Docs/x.txt and docs/x.txt are two different files, but they share one history. A grantee on docs/x.txt sees another person's update on Docs/x.txt.

Expected: match exactly where the store is case-sensitive. Keep case-insensitive matching only where Cairn itself treats names that way, for example a case-only space rename that leaves no alias. A case-only rename of a file must still carry its own history.

To do: fix, then test on posix and s3 with case-differing siblings, a case-only rename and a grantee.

Found in the batch 4 final-fix review (finding 4, 2026-10-20). This predates batch 4; v0.6.350 behaves the same. **What happens:** Activity matches paths case-insensitively below the home or space segment (`internal/activity/activity.go:221`). On a case-sensitive store (posix ext4, s3), `Docs/x.txt` and `docs/x.txt` are two different files, but they share one history. A grantee on `docs/x.txt` sees another person's update on `Docs/x.txt`. **Expected:** match exactly where the store is case-sensitive. Keep case-insensitive matching only where Cairn itself treats names that way, for example a case-only space rename that leaves no alias. A case-only rename of a file must still carry its own history. **To do:** fix, then test on posix and s3 with case-differing siblings, a case-only rename and a grantee.
Cordy closed this issue 2026-10-27 03:15:03 +00:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#982
No description provided.