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>
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>
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>
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
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>
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.
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
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>
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>
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>
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.
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>
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>
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>
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