Skip to content

Commit 9c0ebc5

Browse files
authored
fix path construction in webdav propfind (#2454)
1 parent 9dd1f75 commit 9c0ebc5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Bugfix: Fix webdav paths in PROPFINDS
2+
3+
The WebDAV Api was handling paths on spaces propfinds in the wrong way. This has been fixed in the WebDAV layer.
4+
5+
https://github.com/cs3org/reva/pull/2454

internal/http/services/owncloud/ocdav/propfind/propfind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ func (p *Handler) getResourceInfos(ctx context.Context, w http.ResponseWriter, r
458458
// add path to resource
459459
res.Infos[i].Path = filepath.Join(info.Path, res.Infos[i].Path)
460460
if spacesPropfind {
461-
res.Infos[i].Path = utils.MakeRelativePath(filepath.Join(info.Path, res.Infos[i].Path))
461+
res.Infos[i].Path = utils.MakeRelativePath(res.Infos[i].Path)
462462
}
463463
if res.Infos[i].Type == provider.ResourceType_RESOURCE_TYPE_CONTAINER {
464464
stack = append(stack, res.Infos[i])

0 commit comments

Comments
 (0)