ocis icon indicating copy to clipboard operation
ocis copied to clipboard

[Sharing-NG] can't get sharing permission for a resource

Open nirajacharya2 opened this issue 1 year ago • 2 comments

Describe the bug

I can not get permission of a particular share using both root and permissions endpoint. which should be possible according to the api specifications on: https://owncloud.dev/libre-graph-api/#/drives.permissions/GetPermission https://owncloud.dev/libre-graph-api/#/drives.root/GetPermissionSpaceRoot

Steps to reproduce

  1. create a link share of a resource
curl -k -XPOST https://localhost:9200/graph/v1beta1/drives/{drive-id}/items/{item-id}/createLink -uadmin:admin
  1. get sharing permission for that resource
curl -k -XGET https://localhost:9200/graph/v1beta1/drives/{drive-id}/items/{item-id}/permissions/{permission-id} -uadmin:admin

Expected behavior

The request should given the permission of the share

Actual behavior

The request gives 405 status code

< HTTP/1.1 405 Method Not Allowed
< Allow: PATCH
< Allow: DELETE

Setup

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

ownCloud Web UI 9.1.0-alpha.1
 Infinite Scale 6.0.0+aa6041abb6 Community

Additional context

Add any other context about the problem here.

nirajacharya2 avatar Jul 05 '24 08:07 nirajacharya2

endpoints are listed but not working: (405 Method Not Allowed)

https://owncloud.dev/libre-graph-api/#/drives.permissions/GetPermission https://owncloud.dev/libre-graph-api/#/drives.root/GetPermissionSpaceRoot

CC @micbar @rhafer

saw-jan avatar Jul 12 '24 06:07 saw-jan

The endpoint is not implemented. We can retrieve the item permission via https://owncloud.dev/libre-graph-api/#/drives.permissions/ListPermissions

2403905 avatar Jul 12 '24 15:07 2403905

Duplicate of #8616

rhafer avatar Aug 05 '24 09:08 rhafer