mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-30 15:59:55 -05:00
Merge pull request #8396 from 2403905/issue-6739-relative
[bump reva]fix an error when move using destination id
This commit is contained in:
+5
-1
@@ -266,7 +266,11 @@ func (s *svc) handleMove(ctx context.Context, w http.ResponseWriter, r *http.Req
|
||||
}
|
||||
// TODO what if intermediate is a file?
|
||||
}
|
||||
|
||||
// resolve the destination path
|
||||
if dst.Path == "." {
|
||||
dst.Path = utils.MakeRelativePath(dstStatRes.GetInfo().GetName())
|
||||
dst.ResourceId = dstStatRes.GetInfo().GetParentId()
|
||||
}
|
||||
mReq := &provider.MoveRequest{Source: src, Destination: dst}
|
||||
mRes, err := client.Move(ctx, mReq)
|
||||
if err != nil {
|
||||
|
||||
Vendored
+1
-1
@@ -362,7 +362,7 @@ github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1
|
||||
github.com/cs3org/go-cs3apis/cs3/storage/registry/v1beta1
|
||||
github.com/cs3org/go-cs3apis/cs3/tx/v1beta1
|
||||
github.com/cs3org/go-cs3apis/cs3/types/v1beta1
|
||||
# github.com/cs3org/reva/v2 v2.18.1-0.20240206135152-2343fe56d568
|
||||
# github.com/cs3org/reva/v2 v2.18.1-0.20240208105019-d5e420d294be
|
||||
## explicit; go 1.21
|
||||
github.com/cs3org/reva/v2/cmd/revad/internal/grace
|
||||
github.com/cs3org/reva/v2/cmd/revad/runtime
|
||||
|
||||
Reference in New Issue
Block a user