Skip to content

Commit

Permalink
Merge pull request #4928 from roman-vanicek/edge
Browse files Browse the repository at this point in the history
Propagate lock in PROPPATCH in WebDAV
  • Loading branch information
micbar authored Nov 21, 2024
2 parents 43de17f + 4002675 commit 2041e81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/unreleased/propagate-lock-proppatch.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions internal/http/services/owncloud/ocdav/proppatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 2041e81

Please sign in to comment.