Skip to content

Commit

Permalink
fix resource name for dav
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Feb 2, 2024
1 parent 72be9fe commit bad6a0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-resource-name-dav.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Fix the resource name

We fixed a problem where after renaming resource as sharer the receiver see a new name for dav and wedav endpoints.

https://github.com/cs3org/reva/pull/4492
https://github.com/owncloud/ocis/issues/8242
1 change: 1 addition & 0 deletions internal/http/services/owncloud/ocdav/propfind/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ func (p *Handler) getResourceInfos(ctx context.Context, w http.ResponseWriter, r

// adjust path
info.Path = filepath.Join(spacePath, spaceRef.Path)
info.Name = filepath.Base(info.Path)

spaceMap[info] = spaceData{Ref: spaceRef, SpaceType: space.SpaceType}

Expand Down

0 comments on commit bad6a0c

Please sign in to comment.