[Sharing-NG] Different response while requesting Pesronal/Shares drive permissions using root and permissions endpoints
Describe the bug
we have two APIs for listing permission for drives i.e.:
- https://owncloud.dev/libre-graph-api/#/drives.root/ListPermissionsSpaceRoot
- https://owncloud.dev/libre-graph-api/#/drives.permissions/ListPermissions
Those API should should give same output but. when listing permission of shares space we get different response
-
(Personal/Shares) using
/drives/{driveId}root/permissions: 400 https://github.com/owncloud/ocis/blob/13ee2d93aa4e856e027d81a38dcf0dbab1a66dee/tests/acceptance/features/apiSharingNg/listPermissions.feature#L1044-L1045 -
(Personal) using
/drives/{Personal-driveId}/items/{drive-root-itemid}:200
{
{
"@libre.graph.permissions.actions.allowedValues": [
"libre.graph/driveItem/permissions/create",
"libre.graph/driveItem/children/create",
"libre.graph/driveItem/standard/delete",
"libre.graph/driveItem/path/read",
"libre.graph/driveItem/quota/read",
"libre.graph/driveItem/content/read",
"libre.graph/driveItem/upload/create",
"libre.graph/driveItem/permissions/read",
"libre.graph/driveItem/children/read",
"libre.graph/driveItem/versions/read",
"libre.graph/driveItem/deleted/read",
"libre.graph/driveItem/path/update",
"libre.graph/driveItem/permissions/delete",
"libre.graph/driveItem/deleted/delete",
"libre.graph/driveItem/versions/update",
"libre.graph/driveItem/deleted/update",
"libre.graph/driveItem/basic/read",
"libre.graph/driveItem/permissions/update",
"libre.graph/driveItem/permissions/deny"
],
"@libre.graph.permissions.roles.allowedValues": [
{
"@libre.graph.weight": 1,
"description": "View and download.",
"displayName": "Can view",
"id": "a8d5fe5e-96e3-418d-825b-534dbdf22b99"
},
{
"@libre.graph.weight": 2,
"description": "View, download, upload, edit, add and delete.",
"displayName": "Can edit",
"id": "58c63c02-1d89-4572-916a-870abc5a1b7d"
},
{
"@libre.graph.weight": 3,
"description": "View, download, upload, edit, add, delete and manage members.",
"displayName": "Can manage",
"id": "312c0871-5ef7-4b3a-85b6-0e4074c64049"
}
]
}
- (Shares) using
/drives/{Shares-driveId}/items/{drive-root-itemid}:200
{
"@libre.graph.permissions.roles.allowedValues": []
}
Expected behavior
both responses should be same.
Actual behavior
different endpoints give different response for same data
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
ownCloud Web UI 9.0.0-alpha.5 index.html-CrS3YD27.mjs:1:414288
Infinite Scale 5.1.0-prealpha+0960d7f136 Community
Additional context
Add any other context about the problem here.
CC @ScharfViktor @rhafer
Prioretizing Sharing NG for hardening.