Repository navigation
fix(ocdav): answer has-preview from the ocdav configuration - #885
Merged
Merged
Conversation
dschmidt
force-pushed
the
feat/ocdav-preview-mime-types
branch
from
October 16, 2026 20:24
2aca023 to
95243da
Compare
dschmidt
marked this pull request as ready for review
October 16, 2026 20:25
dschmidt
marked this pull request as draft
October 16, 2026 20:26
dschmidt
added a commit
to opencloud-eu/opencloud
that referenced
this pull request
Oct 16, 2026
ocdav takes the types from its own configuration instead of importing an OpenCloud package, and the frontend hands in what webdav attempts. The vendored reva carries the change until opencloud-eu/reva#885 lands.
dschmidt
added a commit
to opencloud-eu/opencloud
that referenced
this pull request
Oct 16, 2026
ocdav takes the types from its own configuration instead of importing an OpenCloud package, and the frontend hands in what webdav attempts. The vendored reva carries the change until opencloud-eu/reva#885 lands.
dschmidt
added a commit
to opencloud-eu/opencloud
that referenced
this pull request
Oct 16, 2026
webdav, graph and ocdav read the same list, so a configured type is announced and attempted by all three. A type the generator cannot answer is refused at startup, and ocdav takes the types from its own configuration instead of importing an OpenCloud package, which the vendored reva carries until opencloud-eu/reva#885 lands.
dschmidt
added a commit
to opencloud-eu/opencloud
that referenced
this pull request
Oct 19, 2026
webdav, graph and ocdav read the same list, so a configured type is announced and attempted by all three. A type the generator cannot answer is refused at startup, and ocdav takes the types from its own configuration instead of importing an OpenCloud package, which the vendored reva carries until opencloud-eu/reva#885 lands.
dschmidt
marked this pull request as ready for review
October 20, 2026 12:37
dschmidt
force-pushed
the
feat/ocdav-preview-mime-types
branch
from
October 20, 2026 12:48
ce3e1d4 to
ab94710
Compare
The deployment knows which types its thumbnail service can render, so ocdav takes them from its own configuration instead of importing an OpenCloud package.
aduffeck
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
oc:has-previewwas answered fromopencloud/services/thumbnails/pkg/thumbnail, a compiled-in map in another module. ocdav now takes the types from its own configuration,preview_mime_types, and the deployment hands in what its thumbnail service can actually render.The list is empty by default: ocdav renders no previews itself, so it has nothing to announce until it is told. For a deployment that configures nothing,
oc:has-previewis 0 everywhere, where it previously came from a frozen OpenCloud v1.1.0 list.OpenCloud sets it in opencloud-eu/opencloud#3397, where the same list drives webdav previews, graph thumbnails and this property. A type configured there used to deliver a preview fine and still be announced as 0.
This also removes the OpenCloud import from ocdav, but not the
go.modrequirement:pkg/app/registry/microandpkg/micro/ocdavstill useopencloud/pkg/registry.