Skip to content

Commit

Permalink
fix path construction in webdav propfind (#2454)
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar authored and butonic committed Feb 14, 2022
1 parent 53037a0 commit 4f84896
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/webdav-path-fix.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/propfind/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 4f84896

Please sign in to comment.