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

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

Open
nirajacharya2 opened this issue Jul 5, 2024 · 2 comments
Open

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

nirajacharya2 opened this issue Jul 5, 2024 · 2 comments
Labels

Comments

@nirajacharya2
Copy link
Contributor

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.

@saw-jan
Copy link
Member

saw-jan commented Jul 12, 2024

@2403905
Copy link
Contributor

2403905 commented Jul 12, 2024

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

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

3 participants