Skip to content

[stable34] fix(attachments): normalize attachment names to Unicode NFC - #9395

Open
backportbot[bot] wants to merge 1 commit into
stable34from
backport/9388/stable34
Open

backportbot[bot] wants to merge 1 commit into
stable34from
backport/9388/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 15, 2026

Copy link
Copy Markdown

Backport of PR #9388

@backportbot
backportbot Bot requested a review from samin-z October 15, 2026 09:31
@backportbot backportbot Bot added this to the Nextcloud 34.0.6 milestone Oct 15, 2026
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
@mejo-
mejo- force-pushed the backport/9388/stable34 branch from 9c74c55 to 83aea17 Compare October 15, 2026 12:23
@mejo-
mejo- enabled auto-merge October 15, 2026 12:23

This branch has not been deployed

No deployments
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