diff --git a/changelog/unreleased/propagate-lock-proppatch.md b/changelog/unreleased/propagate-lock-proppatch.md new file mode 100644 index 0000000000..7fcdf23f97 --- /dev/null +++ b/changelog/unreleased/propagate-lock-proppatch.md @@ -0,0 +1,4 @@ +Bugfix: Propagate lock in PROPPATCH +Clients using locking (ie. Windows) could not create/copy files over webdav as file seemed to be locked. + +https://github.com/cs3org/reva/pull/4928 \ No newline at end of file diff --git a/internal/http/services/owncloud/ocdav/proppatch.go b/internal/http/services/owncloud/ocdav/proppatch.go index 6ead723f5e..b6fcf1f97d 100644 --- a/internal/http/services/owncloud/ocdav/proppatch.go +++ b/internal/http/services/owncloud/ocdav/proppatch.go @@ -133,12 +133,14 @@ func (s *svc) handleProppatch(ctx context.Context, w http.ResponseWriter, r *htt rreq := &provider.UnsetArbitraryMetadataRequest{ Ref: ref, ArbitraryMetadataKeys: []string{""}, + LockId: requestLockToken(r), } sreq := &provider.SetArbitraryMetadataRequest{ Ref: ref, ArbitraryMetadata: &provider.ArbitraryMetadata{ Metadata: map[string]string{}, }, + LockId: requestLockToken(r), } acceptedProps := []xml.Name{}