diff --git a/changelog/unreleased/webdav-path-fix.md b/changelog/unreleased/webdav-path-fix.md new file mode 100644 index 00000000000..34123fa7e1f --- /dev/null +++ b/changelog/unreleased/webdav-path-fix.md @@ -0,0 +1,5 @@ +Bugfix: Fix webdav paths in PROPFINDS + +The WebDAV Api was handling paths on spaces propfinds in the wrong way. This has been fixed in the WebDAV layer. + +https://github.com/cs3org/reva/pull/2454 diff --git a/internal/http/services/owncloud/ocdav/propfind/propfind.go b/internal/http/services/owncloud/ocdav/propfind/propfind.go index 7d5a42c7b31..96f6aab6bf3 100644 --- a/internal/http/services/owncloud/ocdav/propfind/propfind.go +++ b/internal/http/services/owncloud/ocdav/propfind/propfind.go @@ -458,7 +458,7 @@ func (p *Handler) getResourceInfos(ctx context.Context, w http.ResponseWriter, r // add path to resource res.Infos[i].Path = filepath.Join(info.Path, res.Infos[i].Path) if spacesPropfind { - res.Infos[i].Path = utils.MakeRelativePath(filepath.Join(info.Path, res.Infos[i].Path)) + res.Infos[i].Path = utils.MakeRelativePath(res.Infos[i].Path) } if res.Infos[i].Type == provider.ResourceType_RESOURCE_TYPE_CONTAINER { stack = append(stack, res.Infos[i])