Different `PROPFIND` calls return different remoteId for the same file in Shares space
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 274
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 103
Description
## Describe the bug
I have an oCIS account with a folder (`/test`) shared with me, so that it appears in my Shares space.
When I perform a `PROPFIND` to the root folder (`/`) of the Shares space, the remoteId of the `/test` folder following the response, is:
```
a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!e908ab2e-2b75-49ee-9e75-9b3351131315:4c510ada-c86b-4815-8820-42cdf82c3d51:cde3f261-336c-4c8d-b5ad-0983c370737d
```
When I perform a `PROPFIND` to the `/test` folder, the remoteId of the `/test` folder following the response, is:
```
e908ab2e-2b75-49ee-9e75-9b3351131315$4c510ada-c86b-4815-8820-42cdf82c3d51!5ff70081-7096-4111-9570- d32077426178
```
Two different IDs for the same folder!
## Steps to reproduce
1. `PROPFIND` request to the root folder in Shares space
2. `PROPFIND` request to the child folder of the root folder in Shares space
3. Compare the IDs in the response
`PROPFIND` to the root folder (need to replace XXXX by a valid token):
```
curl -k -H 'Authorization: Bearer XXXX' -H 'Host: https://ocis.ocis-traefik.latest.owncloud.works' https://ocis.ocis-traefik.latest.owncloud.works/f/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668 -X PROPFIND
```
`PROPFIND` to the`/test` folder (need to replace XXXX by a valid token):
```
curl -k -H 'Authorization: Bearer XXXX' -H 'Host: https://ocis.ocis-traefik.latest.owncloud.works' https://ocis.ocis-traefik.latest.owncloud.works/f/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668/test -X PROPFIND
```
## Expected behavior
Same ID for the same folder in both `PROPFIND` responses to keep consistency.
## Actual behavior
Different ID for the same folder depending on the `PROPFIND` performed.
## Setup
I'm using `ocis-traefik.latest`, redirected from https://ocis.owncloud.works:
```
ownCloud Web UI 8.0.0-rc.3
Infinite Scale 5.1.0-prealpha+0d5437a00 Community
```
Contributor guide
Assessment
This issue has not been assessed yet.