Spaces: a folder that exists in both Unicode spellings (NFC and NFD twins) hides one of them; flag it for admins #948

Closed
opened 2026-10-17 02:01:16 +00:00 by Cordy · 0 comments
Owner

Found while specifying #934 (fix-922 spec §14, 2026-10-16).

What happens: since v0.6.347 both storage drivers resolve each path segment in either Unicode form, trying the composed (NFC) spelling first. If the storage holds two folders of one name, one spelled NFC and one NFD (for example a macOS tool created Café decomposed and Cairn or another tool created it composed), Cairn always uses the NFC one, and the other folder's files can't be reached through Cairn.

The empty twin left by a v0.6.346 take-over is removed automatically at start. A twin that holds files is only logged as a WARN (spaces: a folder with the usual spelling hides a space's folder and was kept).

Expected: an administrator can see such twins and merge them.

To do:

  • Detect twins in the Administration > Spaces inventory (and in personal folders, if cheap).
  • Show a row note such as "Two folders with this name exist in different Unicode spellings; one is hidden".
  • Offer a merge, or document the manual merge.
  • Test on posix and s3.
Found while specifying #934 (fix-922 spec §14, 2026-10-16). **What happens:** since v0.6.347 both storage drivers resolve each path segment in either Unicode form, trying the composed (NFC) spelling first. If the storage holds two folders of one name, one spelled NFC and one NFD (for example a macOS tool created `Café` decomposed and Cairn or another tool created it composed), Cairn always uses the NFC one, and the other folder's files can't be reached through Cairn. The empty twin left by a v0.6.346 take-over is removed automatically at start. A twin that holds files is only logged as a WARN (`spaces: a folder with the usual spelling hides a space's folder and was kept`). **Expected:** an administrator can see such twins and merge them. **To do:** - Detect twins in the Administration > Spaces inventory (and in personal folders, if cheap). - Show a row note such as "Two folders with this name exist in different Unicode spellings; one is hidden". - Offer a merge, or document the manual merge. - Test on posix and s3.
Cordy closed this issue 2026-10-27 03:15:07 +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#948
No description provided.