sharee (editor role) MOVE a file by file-id into shared sub-folder returns 502
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 274
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 103
Description
## Describe the bug
When sharee makes API request to move a file from a sub-folder to folder in `Shares` space , then we get the status code `403` but the share should be able to MOVE the resouce within the shared folder
## Steps to reproduce
Steps to reproduce the behavior:
1. As `marie`, create a folder `folder`
2. As `marie` creates a sub-folder `sub-folder` inside folder `folder`
3. As `marie` upload the file `file.txt` inside `folder`
4. As `marie`, share a folder `folder` to `einstein` with permission `all`
5. As `einstein`, move `file.txt` to `sub-folder` using curl commands:
```zsh
curl -kv -XMOVE -ueinstein:relativity 'https://localhost:9200/remote.php/dav/spaces/' \
-H 'Destination: https://localhost:9200/remote.php/dav/spaces//sub-folder/' | xmllint --format
```
## Expected behavior
The status code `201`
## Actual behavior
```xml
< HTTP/1.1 403 Forbidden
<
Sabre\DAV\Exception\Forbidden
cross storage moves are not permitted, use copy and delete
```
Contributor guide
Assessment
This issue has not been assessed yet.