Skip to content

[stable-33.0] Handle macOS alias files in File Provider Extension#9594

Merged
i2h3 merged 1 commit intostable-33.0from
backport/9445/stable-33.0
Mar 10, 2026
Merged

[stable-33.0] Handle macOS alias files in File Provider Extension#9594
i2h3 merged 1 commit intostable-33.0from
backport/9445/stable-33.0

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented Mar 10, 2026

Backport of PR #9445

@backportbot backportbot Bot requested a review from i2h3 March 10, 2026 19:12
@backportbot backportbot Bot requested review from mgallien and nilsding as code owners March 10, 2026 19:12
@backportbot backportbot Bot added bug 3. to review feature: 📁 file provider macOS File Provider Extension, more general also known as virtual file system. labels Mar 10, 2026
@backportbot backportbot Bot added this to the 33.0.0 milestone Mar 10, 2026
…or extension (fixes #8436)

macOS alias files have no MIME type and no file extension, so their type
cannot be inferred from server metadata alone during enumeration.

On upload, preserve the `com.apple.alias-file` UTI in stored metadata
instead of falling back to an empty string when no MIME type is available.

On download, detect alias files by reading the Apple Bookmark magic bytes
("book", 0x62 0x6F 0x6F 0x6B) from the fetched file content. When found,
update the stored metadata with the correct content type so the File
Provider framework handles the file as an alias rather than opaque binary
data.

Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
@i2h3 i2h3 merged commit 8b72da7 into stable-33.0 Mar 10, 2026
15 checks passed
@i2h3 i2h3 deleted the backport/9445/stable-33.0 branch March 10, 2026 19:13
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug feature: 📁 file provider macOS File Provider Extension, more general also known as virtual file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant