-
Notifications
You must be signed in to change notification settings - Fork 189
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] getting permissions for drive via driveId doesn't work #8351
Comments
Tested for the personal space. It works properly |
Yeah, this works. But the issue is about using: -/graph/v1beta1/drives/storage-users-1$some-admin-user-id-0000-000000000000/items/storage-users-1$some-admin-user-id-0000-000000000000!some-admin-user-id-0000-000000000000/permissions`
+/graph/v1beta1/drives/storage-users-1$some-admin-user-id-0000-000000000000/items/storage-users-1$some-admin-user-id-0000-000000000000/permissions` |
Yes a
|
So Web would need to make an extra call to |
Ralf is trying to make the item id obsolete for space roots. The /root url part is basically an alias for the item id of the space root |
This add support for the following graph routes: POST /drives/{driveID}/root/createLink DELETE /drives/{driveID}/root/permissions/{permissionID} PATCH /drives/{driveID}/root/permissions/{permissionID} and POST /drives/{driveID}/root/permissions/{permissionID}/setPassword This should significantly improve handling of permissions on spaces as there is no need to figure to the drive's root itemid anymore. Partial Fix: owncloud#8351
This add support for the following graph routes: POST /drives/{driveID}/root/createLink DELETE /drives/{driveID}/root/permissions/{permissionID} PATCH /drives/{driveID}/root/permissions/{permissionID} and POST /drives/{driveID}/root/permissions/{permissionID}/setPassword This should significantly improve handling of permissions on spaces as there is no need to figure to the drive's root itemid anymore. Partial Fix: owncloud#8351
This add support for the following graph routes: POST /drives/{driveID}/root/createLink DELETE /drives/{driveID}/root/permissions/{permissionID} PATCH /drives/{driveID}/root/permissions/{permissionID} and POST /drives/{driveID}/root/permissions/{permissionID}/setPassword This should significantly improve handling of permissions on spaces as there is no need to figure to the drive's root itemid anymore. Partial Fix: owncloud#8351
This adds a couple of new enpdoints for being able to access a drive's root more easily. Related: owncloud/ocis#8351
This adds a couple of new enpdoints for being able to access a drive's root more easily. Related: owncloud/ocis#8351
This add support for the following graph routes: POST /drives/{driveID}/root/createLink DELETE /drives/{driveID}/root/permissions/{permissionID} PATCH /drives/{driveID}/root/permissions/{permissionID} and POST /drives/{driveID}/root/permissions/{permissionID}/setPassword This should significantly improve handling of permissions on spaces as there is no need to figure to the drive's root itemid anymore. Partial Fix: owncloud#8351
This add support for the following graph routes: POST /drives/{driveID}/root/createLink DELETE /drives/{driveID}/root/permissions/{permissionID} PATCH /drives/{driveID}/root/permissions/{permissionID} and POST /drives/{driveID}/root/permissions/{permissionID}/setPassword This should significantly improve handling of permissions on spaces as there is no need to figure to the drive's root itemid anymore. Partial Fix: owncloud#8351
This add support for the following graph routes: POST /drives/{driveID}/root/createLink DELETE /drives/{driveID}/root/permissions/{permissionID} PATCH /drives/{driveID}/root/permissions/{permissionID} and POST /drives/{driveID}/root/permissions/{permissionID}/setPassword This should significantly improve handling of permissions on spaces as there is no need to figure to the drive's root itemid anymore. Partial Fix: #8351
Describe the bug
Permissions of a drive currently can't be fetched when using the
driveId
asitemId
.Steps to reproduce
curl "https://localhost:9200/graph/v1beta1/drives/{drive-id}/items/{drive-id}/permissions" -u admin:admin -vk | jq
Expected behavior
The permissions for that drive should be returned by the server.
Actual behavior
The server complains about an invalid
itemId
. This probably happens because thedriveId
only consists of 2 parts and is missing thenodeId
as third part. Appending the last part of thedriveId
asnodeId
works. But consumer of the API shouldn't need to care about id formats.cc @rhafer
The text was updated successfully, but these errors were encountered: