Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared file can't rename using fileid #6981

Open
amrita-shrestha opened this issue Aug 8, 2023 · 0 comments
Open

Shared file can't rename using fileid #6981

amrita-shrestha opened this issue Aug 8, 2023 · 0 comments
Labels

Comments

@amrita-shrestha
Copy link
Contributor

Describe the bug

  • Operations like GET, PROPFIND can be perform knowing shared resource fileid but can't rename

Steps to reproduce

Steps to reproduce the behavior:

  1. user Alice create resource game/some.txt
  2. user Alice share resource game with user Einstein
  3. user Einstein propfind the file some.txt fileid aafeb67a-4a2a-483a-a91f-f475a8a032f2$4ddb10d2-3237-4be1-ba45-80a06cb76b69!b7b47c0b-d430-4a72-8a7f-69499a6f9715
  4. user Einstein get the mount point id of shared folder game
curl -XGET -vk https://localhost:9200/graph/v1.0/drives -ueintein:relativity
"driveAlias": "mountpoint/game",
            "driveType": "mountpoint",
            "id": "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!aafeb67a-4a2a-483a-a91f-f475a8a032f2:4ddb10d2-3237-4be1-ba45-80a06cb76b69:a9e1f8a3-34a8-46e1-8660-ce8a584bcc62",
            "name": "game",
            "owner": {
                "user": {
                    "displayName": "",
                    "id": "4ddb10d2-3237-4be1-ba45-80a06cb76b69"
                }
            },
  1. user Einstein try to rename some.txt to rename.txt
curl -XMOVE 'https://localhost:9200/remote.php/dav/spaces/aafeb67a-4a2a-483a-a91f-f475a8a032f2$4ddb10d2-3237-4be1-ba45-80a06cb76b69!b7b47c0b-d430-4a72-8a7f-69499a6f9715' \
--header 'Destination: https://localhost:9200/remote.php/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668!aafeb67a-4a2a-483a-a91f-f475a8a032f2%3A4ddb10d2-3237-4be1-ba45-80a06cb76b69%3Aa9e1f8a3-34a8-46e1-8660-ce8a584bcc62/rename.txt' \

Expected behavior

using fileid rename should be possible similar to using the file name

curl -XMOVE 'https://localhost:9200/remote.php/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668!aafeb67a-4a2a-483a-a91f-f475a8a032f2%3A4ddb10d2-3237-4be1-ba45-80a06cb76b69%3Aa9e1f8a3-34a8-46e1-8660-ce8a584bcc62/some.txt'
--header 'Destination: https://localhost:9200/remote.php/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668!aafeb67a-4a2a-483a-a91f-f475a8a032f2%3A4ddb10d2-3237-4be1-ba45-80a06cb76b69%3Aa9e1f8a3-34a8-46e1-8660-ce8a584bcc62/rename.txt' 

Status Code:
201 Created

Actual behavior

<?xml version="1.0" encoding="UTF-8"?>
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
    <s:exception></s:exception>
    <s:message>gateway does not support cross storage move, use copy and delete</s:message>
</d:error>

Setup

Screenshot from 2023-08-08 10-23-01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant