Search response returns wrong permissions for incoming shares
Open
Type:Bug
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 274
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 103
Description
## Describe the bug
The `REPORT` endpoint is returning wrong permissions for incoming shares.
## Steps to reproduce
1. As `einstein`, share a file with `admin` with the role "Editor"
2. As `admin`, query that share via a `PROPFIND` (`https://localhost:9200/remote.php/dav/spaces/{fileId}`)
3. as `admin`, query that file via the dav `REPORT` endpoint (`https://localhost:9200/remote.php/dav/spaces`)
4. Compare the dav permissions in the response
## Expected behavior
They are equal.
## Actual behavior
They differ. The `REPORT` endpoint is missing e.g. the `NV` permission that indicates that the user can update the file.
Contributor guide
Assessment
This issue has not been assessed yet.