Skip to content

[stable35] fix(attachments): normalize attachment names to Unicode NFC - #9396

Merged
mejo- merged 1 commit into
stable35from
backport/9388/stable35
Oct 15, 2026
Merged

mejo- merged 1 commit into
stable35from
backport/9388/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 15, 2026

Copy link
Copy Markdown

Backport of PR #9388

Files uploaded from macOS in Chrome or Firefox have NFD names, while the
filecache, and therefore the attachment list, stores names in NFC. The
upload response returned the raw NFD name, so the editor inserted an NFD
`src`. AttachmentResolver compared names exactly, found no matching
attachment and fell back to loading the file as an image, which failed.

Normalize uploaded names to NFC before saving them, and compare names
in NFC in AttachmentResolver so that documents that already contain NFD
srcs resolve as well.

Fixes: #7873
Refs: nextcloud/server#65514
Refs: nextcloud/collectives#2327

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5-5
@backportbot
backportbot Bot requested a review from samin-z October 15, 2026 09:31
@backportbot backportbot Bot added this to the Nextcloud 35.0.3 milestone Oct 15, 2026
@mejo-
mejo- merged commit a9d28f8 into stable35 Oct 15, 2026
69 checks passed
@mejo-
mejo- deleted the backport/9388/stable35 branch October 15, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant