owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.4k stars 183 forks source link

[parallel-deployment] Deleting shares returns 998 error but the share is deleted (using oCIS selector) #4184

Closed saw-jan closed 3 months ago

saw-jan commented 2 years ago

Describe the bug

Deleting a share using ocis selector returns 998 error but the share is deleted.

Steps to reproduce

  1. Create a user share
    curl -XPOST -ueinstein:relativity "https://host.docker.internal:9200/ocs/v1.php/apps/files_sharing/api/v1/shares" \
    -H"Cookie:owncloud-selector=ocis;path=/;" \
    -d"shareType=0;shareWith=marie;path=Folder1"
  2. Delete the share:
    curl -XPOST -ueinstein:relativity "https://host.docker.internal:9200/ocs/v1.php/apps/files_sharing/api/v1/shares/1" \
    -H"Cookie:owncloud-selector=ocis;path=/;"
    <?xml version="1.0" encoding="UTF-8"?>
    <ocs>
    <meta>
        <status>error</status>
        <statuscode>998</statuscode>
        <message>not found</message>
    </meta>
    </ocs>
  3. list shares
    curl -XPOST -ueinstein:relativity "https://host.docker.internal:9200/ocs/v1.php/apps/files_sharing/api/v1/shares?shared_with_others=true&state=all" \
    -H"Cookie:owncloud-selector=ocis;path=/;"

Expected behavior

to get 204 response code

Actual behavior

return 200 http response with 998 ocs error

<?xml version="1.0" encoding="UTF-8"?>
<ocs>
    <meta>
        <status>error</status>
        <statuscode>998</statuscode>
        <message>not found</message>
    </meta>
</ocs>

Setup

oc10-ocis parallel deployment STORAGE_USERS_DRIVER: owncloudsql SHARING_USER_DRIVER: owncloudsql

saw-jan commented 3 months ago

Not going to happen. So closing here.