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

PROPFIND request to resource shared with user when deleted retains it's <oc:share-type> property #9463

Open
S-Panta opened this issue Jun 25, 2024 · 0 comments
Labels

Comments

@S-Panta
Copy link
Contributor

S-Panta commented Jun 25, 2024

Describe the bug

When a resource is shared with a user and propfind is done to that resource from sharer with the body <oc:share-types />, the response will be 0. Even if the user is deleted, the value doesn't change.
Same goes with the group.
The value becomes empty only when the resource is unshared with the user or group but when they are deleted, the propfind property retains the previous value

Steps to reproduce

  1. Create a user admin and einstein
    2.create a folder test
    3.Share the folder with einstein
  2. Delete the user einstein
  3. PROPFIND the resources by admin
 curl -k --location --request PROPFIND 'https://host.docker.internal:9200/remote.php/dav/spaces/a9439309-d04d-4855-8e66-aade543fa429%2478d13b96-8de1-4dfa-8886-c932831e6c04/testFolder' \
-uadmin:admin \ 
--data '<d:propfind xmlns:d="DAV:" 
            xmlns:oc="http://owncloud.org/ns" 
            xmlns:ocs="http://open-collaboration-services.org/ns">
    <d:prop>
        <oc:share-types />
    </d:prop>
</d:propfind>
'

Expected behavior

The XML response for sharetype should be empty

Actual behavior

<d:multistatus xmlns:s="http://sabredav.org/ns" xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
    <d:response>
        <d:href>/remote.php/dav/spaces/a9439309-d04d-4855-8e66-aade543fa429$78d13b96-8de1-4dfa-8886-c932831e6c04/testFolder/</d:href>
        <d:propstat>
            <d:prop>
                <oc:share-types>
                    <oc:share-type>0</oc:share-type>
                </oc:share-types>
            </d:prop>
            <d:status>HTTP/1.1 200 OK</d:status>
        </d:propstat>
    </d:response>

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

OCIS_XXX= Infinite Scale 6.0.0+1db4d1031c Community 
OCIS_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

@S-Panta S-Panta changed the title PROPFIND request to resource shared with user when deleted retains it's sharetype property PROPFIND request to resource shared with user when deleted retains it's <oc:share-type> property Jun 25, 2024
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