diff --git a/changelog/unreleased/fix-dav-meta.md b/changelog/unreleased/fix-dav-meta.md new file mode 100644 index 0000000000..4a79d4790f --- /dev/null +++ b/changelog/unreleased/fix-dav-meta.md @@ -0,0 +1,5 @@ +Bugfix: Make /dav/meta consistent + +We now also return absolute paths for shares in the share jail in the /dav/meta endpoint. + +https://github.com/cs3org/reva/pull/4474 diff --git a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go index 432bcb15ce..1d678d06bc 100644 --- a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go +++ b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go @@ -321,7 +321,7 @@ func (s *service) GetPath(ctx context.Context, req *provider.GetPathRequest) (*p return &provider.GetPathResponse{ Status: status.NewOK(ctx), - Path: receivedShare.MountPoint.Path, + Path: filepath.Clean("/" + receivedShare.MountPoint.Path), }, nil }