Skip to content

fix(ocdav): answer has-preview from the ocdav configuration - #885

Merged
aduffeck merged 2 commits into
mainfrom
feat/ocdav-preview-mime-types
Oct 23, 2026
Merged

aduffeck merged 2 commits into
mainfrom
feat/ocdav-preview-mime-types

Conversation

@dschmidt

Copy link
Copy Markdown

oc:has-preview was answered from opencloud/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-preview is 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.mod requirement: pkg/app/registry/micro and pkg/micro/ocdav still use opencloud/pkg/registry.

@dschmidt dschmidt added the Type:Maintenance E.g. technical debt, packaging, etc. label Oct 16, 2026
@dschmidt
dschmidt force-pushed the feat/ocdav-preview-mime-types branch from 2aca023 to 95243da Compare October 16, 2026 20:24
@dschmidt
dschmidt marked this pull request as ready for review October 16, 2026 20:25
@dschmidt
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
dschmidt marked this pull request as ready for review October 20, 2026 12:37
@dschmidt
dschmidt force-pushed the feat/ocdav-preview-mime-types branch from ce3e1d4 to ab94710 Compare October 20, 2026 12:48
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
aduffeck merged commit 40a03d1 into main Oct 23, 2026
19 checks passed
@aduffeck
aduffeck deleted the feat/ocdav-preview-mime-types branch October 23, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants