[macOS Sonoma] FinderSync icons (green checkmarks) & context menu missing for folders with German umlauts (NFD vs NFC path mismatch)

Aperta
#12,681 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp, macos
Ambito
backend, desktop

Direzione di ricerca

Start by tracing where the macOS FinderSync extension registers paths and compare that path handling with the NFD paths reported by the issue. Reproduce with a sync folder named Persönlich and confirm the registered path matches the filesystem normalization. Done means Finder shows the sync overlays and context menu for folders containing umlauts while sync continues to work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Pre-submission Checks
  • I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.
Describe the bug

On macOS Sonoma, the FinderSync integration (green sync checkmark overlays and the right-click context menu to share files/links) fails for folders containing German umlauts (e.g., ö in a folder named Persönlich).

Folders without umlauts (e.g., Freigaben) located in the exact same root directory work as expected and display both the green sync status checkmarks and the context menu actions.

This is caused by a Unicode normalization mismatch between macOS and the ownCloud client's path registration:

  • macOS Filesystem: Uses NFD (Decomposed) representation for umlauts (e.g., ö is stored as 6f cc 88).
  • ownCloud Client Log: Registers the path in NFC (Composed) representation (e.g., c3 b6) via REGISTER_PATH.
  • Result: Because FinderSync performs an exact byte-for-byte string match on REGISTER_PATH, the macOS Finder ignores the folder and fails to display status overlays or context menus, even though the file synchronization itself functions properly.
Expected behavior

The ownCloud client should normalize local directory paths to NFD (Decomposed) on macOS before registering them with FinderSync. This ensures that folders with umlauts or special characters correctly display green sync status checkmarks and the right-click context menu.

Steps to reproduce the issue
  1. Create a sync folder containing a German umlaut (e.g., Persönlich).
  2. Observe that no green checkmark overlay appears and no ownCloud context menu is available on right-click.
  3. Verify Unicode encoding via Terminal:
    • Filesystem: ls ~/ownCloud | xxd shows NFD (6f cc 88).
    • Client Log: grep "REGISTER_PATH" shows NFC (c3 b6).
  4. Workaround / Proof:
    • Remove the Space sync connection for the affected folder in the client settings (keeping local files).
    • Rename the local directory from Persönlich to Persoenlich (replacing ö with oe).
    • Re-add the Space sync connection targeting ~/ownCloud/Persoenlich.
    • Restart Finder and FinderSync: killall FinderSync; killall Finder
    • Restart the ownCloud desktop client.
  5. Immediately after renaming to Persoenlich, the path bytes match, and both green checkmarks and right-click context menu options work correctly.
Screenshots
  • Freigaben (without umlauts): Sync overlay icons work correctly.
  • Persönlich (with umlaut ö): Sync overlay icons and context menu entries are missing.
Logs

tom@imac ~ % ls ~/ownCloud | xxd | head
00000000: 4672 6569 6761 6265 6e0a 5065 7273 6fcc Freigaben.Perso.
00000010: 886e 6c69 6368 0a .nlich.

grep "REGISTER_PATH:/Users/tom/ownCloud/Pers" /private/var/folders/j9/dcjxfhlj17d92_c9jngtrqpm0000gq/T/ownCloud-logdir/ownCloud.log | tail -1 | xxd
00000000: 3236 2d31 312d 3034 2031 353a 3233 3a30 26-11-04 15:23:0
00000010: 323a 3834 3020 5b20 696e 666f 2067 7569 2:840 [ info gui
00000020: 2e73 6f63 6b65 7461 7069 205d 3a09 5365 .socketapi ]:.Se
00000030: 6e64 696e 6720 536f 636b 6574 4150 4920 nding SocketAPI
00000040: 6d65 7373 6167 6520 2d2d 3e20 2252 4547 message --> "REG
00000050: 4953 5445 525f 5041 5448 3a2f 5573 6572 ISTER_PATH:/User
00000060: 732f 746f 6d2f 6f77 6e43 6c6f 7564 2f50 s/tom/ownCloud/P
00000070: 6572 73c3 b66e 6c69 6368 2220 746f 2053 ers..nlich" to S
00000080: 6f63 6b65 7441 7069 536f 636b 6574 2830 ocketApiSocket(0
00000090: 7836 3030 3030 3063 3931 3861 3029 0a x600000c918a0).
tom@imac ownCloud-logdir %

Client version number

7.1.1

Desktop environment (Linux only)

No response

Client package version and origin (Linux only)

No response

Installation path (Windows only)

No response

Server information

ownCloud Infinite Scale (ocis) Docker

Additional context

Tested on macOS Sonoma. The file synchronization mechanism itself works without errors; only the FinderSync extension path registration fails due to the NFD vs NFC byte mismatch.

Workaround / Tested Fix:

  1. Remove the Space sync connection for the affected folder in the client settings (without deleting local files).
  2. Rename the local directory from Persönlich to Persoenlich (replacing ö with oe).
  3. Re-add the Space sync connection targeting ~/ownCloud/Persoenlich.
  4. Restart Finder and FinderSync (killall FinderSync; killall Finder) and restart the ownCloud desktop client.
  5. Result: Immediately after renaming to Persoenlich, REGISTER_PATH matches, and both green checkmarks and right-click context menu options work correctly.
Lingua principale
C++
Stelle
1.5k
Fork
695
Merge medio
8g 7h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di owncloud/client

Tutte le issue di owncloud/client

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.