Commit Graph
24391 Commits
Author SHA1 Message Date
Jörn Friedrich Dreyer bc8cd60fc3 Merge pull request #3956 from opencloud-eu/workpagages
feat: merge the workpagages branch into main
2026-11-13 17:53:39 +01:00
Jörn Friedrich Dreyer e864b06797 Merge pull request #3913 from Pflum/fix-revaconfig
Fix Reva config to also validate OC_CACHE_* tls settings and fix the disable_persistence key
2026-11-13 17:24:43 +01:00
Jörn Friedrich Dreyer ede21a0ac6 Merge branch 'main' into workpagages
The only conflicts were the reva bump in go.mod, go.sum and vendor.
main moved to reva v2.52.2, workpagages already points to reva main
036856689, which contains v2.52.2, so we keep that and re-vendor.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-13 17:03:53 +01:00
Jörn Friedrich Dreyer a24d49a296 Merge pull request #3839 from opencloud-eu/port-upload-coordinator
feat: switch uploads to the reva upload coordinator
2026-11-13 16:57:58 +01:00
Michael Barz db7ffa7a40 Merge pull request #3899 from asaah262/feat/898-allow-setting-spaceid
feat(graph): allow client-supplied drive IDs when creating spaces
2026-11-13 16:27:29 +01:00
Jörn Friedrich Dreyer 21b48b9d05 Merge pull request #3981 from pbleser-oc/fix/graph-me-issuer-assigned-id
fix(graph): return the identities of the identity backend on /me
2026-11-13 16:11:44 +01:00
Jörn Friedrich Dreyer 18fc08c697 build: bump reva to main 036856689
workpackages was merged into reva main with
https://github.com/opencloud-eu/reva/pull/957, so we no longer need to
pin the workpackages branch. The code is the same as 7ff1d6fb1, only
the version changes.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-13 15:50:33 +01:00
Jörn Friedrich Dreyer 454c05afc9 build: bump reva to workpackages 7ff1d6fb1
Brings in https://github.com/opencloud-eu/reva/pull/1001, which merges
reva main into workpackages: the typed storage results, the fix for
synchronous uploads stuck in processing (moved to the upload
coordinator), the main-queue replica fix and the posix id cache fail
fast.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-13 15:21:45 +01:00
Sara Ahmadi 768cd264d7 feat(graph): reject drive ids that belong to existing users
Assisted-by: Claude Code:claude-opus-5-5
2026-11-13 13:22:24 +01:00
Andre Duffeck f314b17fce Merge pull request #3925 from opencloud-eu/chore/drop-enable-vips
drop the enable_vips build flag
2026-11-13 12:38:28 +01:00
micbar c996d22dc4 chore: add new target branch to backport config 2026-11-13 09:56:19 +01:00
Jörn Friedrich Dreyer 498979b76e Merge pull request #3976 from dragonchaser/backport-wp2-744
feat(frontend): add server managed spaces capability
2026-11-13 09:24:12 +01:00
opencloudeu c61b1cec87 [tx] updated from transifex 2026-11-12 23:17:06 +00:00
Pascal Bleser acb16b538a fix(graph): return the identities of the identity backend on /me
Without $expand=memberOf, GET /me built the user from the CS3 user of
the request context. That user doesn't know the identities the user
signed in with, so identities[].issuerAssignedId contained the internal
user ID instead of the subject assigned by the identity provider, which
the identity backend stores when the user is provisioned. Only requests
with $expand=memberOf read the user from the identity backend and
returned the correct value.

GET /me now always reads the user from the identity backend. The group
memberships are still only looked up when $expand=memberOf asks for
them, so a plain /me costs one more user lookup in the identity
backend.

This changes the response of a plain GET /me in two cases:
- users for whom the identity backend has no stored identity, e.g.
  users created through the API rather than signed in through an
  identity provider, get no identities at all, instead of one that
  wrongly carried the internal user ID
- when the identity backend doesn't know the user, /me answers with its
  error (e.g. 404 instead of 200 with a model built from the request
  context)

A failing identity backend is now logged at error level, a user it
doesn't know at debug level.

PERFORMANCE: every plain GET /me now runs one search in the identity
backend (LDAP), where it used to need none.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-12 18:04:58 +01:00
Jörn Friedrich Dreyer 0d969c3179 thumbnails: drop the enable_vips build flag
The thumbnails service now always resizes in pure Go. Deployments that
want more formats, webp output or an attention crop run a real imagor
and point WEBDAV_THUMBNAILS_GENERATOR_URL at it. The built-in service
stays as a minimal fallback that keeps working when imagor or libvips
have to be taken out, for example during a security issue.

Without cgo dependencies the docker images link statically again and no
longer need the vips packages. The vips parity run in CI goes away, the
regular test run already covers the pure Go build.

The preview fixtures of the acceptance tests were rendered by libvips,
so they are regenerated with the pure Go build. Text previews now lose
their left edge: the 640x480 text canvas is filled into a square box
and the pure Go build crops the centre, where libvips' attention crop
kept the left side with the text.

part of https://github.com/opencloud-eu/opencloud/issues/3912

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-12 15:41:35 +01:00
Sara Ahmadi 3999ed0de8 Merge pull request #3881 from asaah262/feat/895-improve-graph-logging-and-tracing
feat(graph): improve logging and tracing for drive item permissions
2026-11-12 15:36:53 +01:00
Christian Richter ada4f0a5e6 test(frontend): cover the server managed spaces capability
Assert that the spaces.server_managed capability follows the OC_CLAIM_MANAGED_SPACES_ENABLED setting for both values.
2026-11-12 14:58:48 +01:00
Martin Mattel 9cb072872a docs(frontend): document the server managed spaces setting
Refine the description of the OC_CLAIM_MANAGED_SPACES_ENABLED setting and add a section to the frontend README that explains what it does.
2026-11-12 14:43:45 +01:00
Julian Koberg 7ee5a8a6af feat(frontend): add server managed spaces capability
Publish the spaces.server_managed capability, driven by the OC_CLAIM_MANAGED_SPACES_ENABLED setting, so that clients can block adding and removing users to and from spaces.
2026-11-12 14:41:16 +01:00
Sara Ahmadi f12a02b007 feat(graph): log error text and correlate gateway selection failures
Log the error text with every permission failure, at debug and error
level, and the texts of both errors when a fallback returns a different
error than the first attempt.

Log gateway selection failures in the share helpers at error level with
the request id and, where available, the permission id, so they can be
matched with the entry of the calling operation.

Use constants for the log keys, the recipient types and the tracer name,
log the space type of unsupported spaces and the user id of the shared
by me listing, and log an unknown permission type when deleting.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-12 11:58:30 +01:00
Jörn Friedrich Dreyer 0da2e8954a build: bump reva to workpackages fa3c9e289
Picks up the space manager checks from
https://github.com/opencloud-eu/reva/pull/990 and
https://github.com/opencloud-eu/reva/pull/993.

go-chi and go-jose move up because reva requires the newer versions.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-12 11:13:35 +01:00
Jörn Friedrich Dreyer f9918ea698 build: bump reva to workpackages c5a650fe2
Picks up https://github.com/opencloud-eu/reva/pull/978: a failed blob
commit now logs the space and node id, and the last attempt logs that
we give up. This runs the rest of the `owncloud/reva#733` port through
the opencloud CI.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-12 11:11:30 +01:00
Jörn Friedrich Dreyer 143a35e63d test: expect 403 when the federated share does not permit the upload
The remote instance still sees the share with the role it was created
with, so the upload coordinator refuses the upload there instead of the
owner's instance failing it with 500.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-12 11:11:30 +01:00
Jörn Friedrich Dreyer 3281a35ae6 storage-users: pass the mount id to the posix driver
The upload coordinator reads the mount id from the driver config to drop
postprocessing results that belong to another storage. The dataprovider
does not add it to the driver config the way the storageprovider does,
so without it the coordinator accepts every result for posix.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-12 11:11:30 +01:00
Alexander Salimonov 0281ccb811 fix: pass mount id to the decomposeds3 storage driver
Postprocessing results are dropped when their storage id does not match
the driver's mount id. Only the decomposed driver was given a mount_id,
so under decomposeds3 there was nothing to compare against.

Also pass it in DecomposedNoEvents and DecomposedS3NoEvents.
2026-11-12 11:11:30 +01:00
Roman Perekhod d71110f01d feat: pass the mount id to the decomposed driver and the resource id on PostprocessingFinished
The storage drops postprocessing events that belong to another storage,
which needs its mount id and the resource id on the event.
2026-11-12 11:11:30 +01:00
Jörn Friedrich Dreyer 74b6eddf8d storage-users: name the queue group the uploads command must stay out of
The driver no longer consumes postprocessing events: the upload
coordinator does, in the "dcfs" group, and the driver only consumes
DeleteRevision in "dcfs-revisions". The command still disables async
uploads so it does not join that group.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-12 11:11:30 +01:00
kobergj 7ddda68ec8 fix(storage-users): add --orphaned upload session filter
Upload sessions whose node metadata can no longer be read can never
finish postprocessing, stay in processing state indefinitely and keep
consuming the quota of their space.

Wire up the Orphaned session filter so operators can list the affected
sessions and remove them with --clean:

    opencloud storage-users uploads sessions --orphaned
    opencloud storage-users uploads sessions --orphaned --clean

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-11-12 11:11:30 +01:00
Firas Frikha 15e0ac1145 refactor(storage-users): list upload sessions through the coordinator
Signed-off-by: Firas Frikha <firas.frikha@kiteworks.com>
2026-11-12 11:11:30 +01:00
Jörn Friedrich Dreyer 2c19a49b6b build: bump reva to workpackages
Pins reva to the workpackages branch (2d4db7d27), which carries the
upload coordinator and the other WP1 storage changes on top of reva
main. Once workpackages lands in reva main this becomes a regular bump
to main.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-12 11:11:30 +01:00
LarsJurgensenandFiras Frikha f36ab73c1f chore: add upload_directory and mount_id to revaconfig
Co-authored-by: Firas Frikha <firas.frikha@kiteworks.com>
2026-11-12 11:11:30 +01:00
Michael Barz 80d187eeb6 Merge pull request #3620 from jmrplens/fix-search-index-grpc-tls
fix(search): honor the gRPC client TLS mode in the index command
2026-11-12 11:03:34 +01:00
Andre Duffeck 5e1db08af6 Merge pull request #3959 from aduffeck/fix/antivirus-clamd-error-response
Don't treat clamd scan errors as clean
2026-11-12 09:30:07 +01:00
OpenCloud Devops 9347da7c9c 🎉 Release 9.1.0 (#3841)
* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.0.1

* 🎉 Release 9.1.0

* 🎉 Release 9.1.0

* 🎉 Release 9.1.0

* 🎉 Release 9.1.0

* 🎉 Release 9.1.0

* 🎉 Release 9.1.0

* 🎉 Release 9.1.0
v9.1.0
2026-11-11 16:41:10 +01:00
2435420f69 [full-ci] chore: bump reva to 2.52.2 (#3955)
* chore: bump reva to 2.52.2

* Merge pull request #42 from opencloud-eu/fix-web-theme-merge

fix(web): merge copies of the theme sources so themeDefaults is never mutated

* Merge pull request #43 from opencloud-eu/fix-search-trailing-not

fix(search): handle missing operands in the bleve compiler

* Merge pull request #44 from opencloud-eu/fix-search-highlight-escaping

fix(search): escape file content in OpenSearch highlights

---------

Co-authored-by: Ralf Haferkamp <r.haferkamp@opencloud.eu>
Co-authored-by: Florian Schade <f.schade@icloud.com>
2026-11-11 14:14:34 +01:00
Viktor Scharf 4d9cf370e7 chore: bump web to v8.2.2 (#3962) 2026-11-11 14:07:59 +01:00
Jörn Friedrich Dreyer 9c7ecc1755 Merge pull request #3946 from pbleser-oc/fix/graph-reject-empty-drive-name
fix(graph): reject empty and invisible drive names on update
2026-11-11 13:31:32 +01:00
Sara Ahmadi 84c784ae67 feat(graph): improve logging and tracing for drive item permissions 2026-11-11 12:19:00 +01:00
Sara Ahmadi cb3a906cb6 Merge pull request #3928 from asaah262/feat/899-get-single-sharing-permission
feat(graph): add GET endpoints for single sharing permissions
2026-11-11 12:14:42 +01:00
Jörn Friedrich Dreyer a2c24749a6 Merge branch 'main' into workpagages 2026-11-11 11:54:21 +01:00
Alex Ababii d7e5b97bdf Merge pull request #3857 from maki5/fix/expired_user_token_in_guest_session
Fix/expired user token in guest session
2026-11-11 11:18:06 +01:00
André Duffeck 6ef16a9569 Document that the max scan size must not exceed clamd's StreamMaxLength 2026-11-11 11:11:02 +01:00
André Duffeck fabb775d17 Fix panic when clamd hangs up without a scan result 2026-11-11 11:10:54 +01:00
Alex Ababii 3fb1dd3f3f Merge pull request #3938 from maki5/fix/webfinger_panic
fix(webfinger): fix panic in OidcAuth middleware
2026-11-11 10:54:33 +01:00
Dominik Schmidt 078a209c4e Merge pull request #3896 from opencloud-eu/fix/csp-media-src-blob
fix(proxy): allow blob: in media-src for motion and live photo playback
2026-11-11 10:43:56 +01:00
Ryo Kusnadi abb00f01c9 fix(antivirus): treat a clamd ERROR reply as a failed scan
Signed-off-by: Ryo Kusnadi <ryokusnadi@gmail.com>
2026-11-11 09:31:06 +01:00
Sara Ahmadi 64a1ac8339 feat(graph): add GET endpoints for single sharing permissions
Assisted-by: Claude Code:claude-opus-5-5
2026-11-10 18:18:01 +01:00
Jörn Friedrich Dreyer 39493c1f37 Merge pull request #3937 from opencloud-eu/fix/client-ip-no-trusted-proxies
fix(middleware): do not build the XFF middleware without trusted proxies
2026-11-10 17:24:51 +01:00
Pascal Bleser 0e265282d2 fix(graph): reject empty and invisible drive names on update
Updating a drive with an empty name ("name": "") succeeded and silently
kept the old name, because the name was only validated when it was
non-empty. Validate it whenever the request contains it, so an empty
name is rejected with 400 like on create. A request without a name, or
with "name": null, still leaves the name unchanged.

Space names were trimmed with strings.TrimSpace, which only removes
Unicode whitespace. Invisible formatting characters such as the
zero-width space (U+200B), the word joiner (U+2060) or the byte order
mark (U+FEFF) aren't whitespace, so a name made only of them was
accepted on create and on update, and showed up as an empty name in
every client. Trim these characters from both ends of the name as
well. Inside a name they are still allowed, since some of them are
needed there, e.g. the zero-width joiner in emoji sequences.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-10 17:16:37 +01:00
Jörn Friedrich Dreyer c292fc9c1f Merge pull request #3939 from dragonchaser/backport-wp2-746
fix(graph): report the space name instead of "." for space roots in sharedByMe
2026-11-10 16:03:42 +01:00