You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Sharing NG] sharedByMe endpoint is missing data for drives shared via link #8355
I'm still having the same issue. Did you make sure to share a drive (space)? Note that Web is using the root endpoint for creating links for drives, maybe there is still some issue: https://localhost:9200/graph/v1beta1/drives/{drive-id}/root/createLink
The response has the link share but I don't see anything in the UI. Or is it not the response you are expecting?
Maybe the problem is with name, parentReference.name or parentReference.path properties. 🤔
Here is the response of sharedByMe of the resource share:
Similar with permissions endpoint: v1beta1/drives/{drive-id}/items/{drive-root-path-id}/createLink
ocis version: Infinite Scale 5.1.0-prealpha+35f3018d11 Community
changed the title [-][Sharing NG] sharedByMe endpoint is missing drives that are shared via link[/-][+][Sharing NG] sharedByMe endpoint is missing data for drives shared via link[/+]on May 14, 2024
Hm, we're just returning what the CS3 API is providing us. So the name property is just populated with the base part ResourceInfo's path property.
For spaceroots that is . as the spaceroot does not really have a (file- or directory-)name I think. I guess you'd expect the space's name to appear there? I guess we could add a special case here for spaceroots. But it feels wrong at least in some ways. AFAIK the name property is supposed to be a file or directory name (the name of a space is neither of that).
@butonic Any suggestion how a space root is properly represented as a driveItem?
Activity
JammingBen commentedon May 14, 2024
I'm still having the same issue. Did you make sure to share a drive (space)? Note that Web is using the root endpoint for creating links for drives, maybe there is still some issue:
https://localhost:9200/graph/v1beta1/drives/{drive-id}/root/createLinksaw-jan commentedon May 14, 2024
Here's what I did:
myspace(webUI)POST: https://localhost:9200/graph/v1beta1/drives/9f8c2d70-780a-4383-a3b2-fb4310c18076%2426664ea7-1276-4da1-8b0b-685e72f5abc7/root/createLink Request body: {"type":"view","@libre.graph.quickLink":false,"password":"^_ZzqA92j[dB","displayName":"Link"}GET: https://localhost:9200/graph/v1beta1/me/drive/sharedByMe Response: { "value": [ { "eTag": "\"db7600305c28bd3a15fda7a574f4a587\"", "folder": {}, "id": "9f8c2d70-780a-4383-a3b2-fb4310c18076$26664ea7-1276-4da1-8b0b-685e72f5abc7!26664ea7-1276-4da1-8b0b-685e72f5abc7", "lastModifiedDateTime": "2024-05-14T14:31:16.357338399+05:45", "name": ".", "parentReference": { "driveId": "9f8c2d70-780a-4383-a3b2-fb4310c18076$26664ea7-1276-4da1-8b0b-685e72f5abc7", "driveType": "project", "id": "9f8c2d70-780a-4383-a3b2-fb4310c18076$26664ea7-1276-4da1-8b0b-685e72f5abc7", "name": ".", "path": "." }, "permissions": [ { "createdDateTime": "2024-05-14T08:48:05.427255127Z", "hasPassword": true, "id": "htsWTzbJQPShNVP", "link": { "@libre.graph.displayName": "Link", "@libre.graph.quickLink": false, "preventsDownload": false, "type": "view", "webUrl": "https://localhost:9200/s/BanbILqvlzyRGSL" } } ], "size": 47279 } ] }The response has the link share but I don't see anything in the UI. Or is it not the response you are expecting?
Maybe the problem is with
name,parentReference.nameorparentReference.pathproperties. 🤔Here is the response of
sharedByMeof the resource share:{ "value": [ { "eTag": "\"dfe6c905b07c54104a3c5b33e23f2e41\"", "folder": {}, "id": "9f8c2d70-780a-4383-a3b2-fb4310c18076$bd767495-5e57-417f-a0a7-402ca1ea5051!4901b71a-1936-4dae-b382-eea149576772", "lastModifiedDateTime": "2024-05-14T14:39:54.008234717+05:45", "name": "New folder", "parentReference": { "driveId": "9f8c2d70-780a-4383-a3b2-fb4310c18076$bd767495-5e57-417f-a0a7-402ca1ea5051", "driveType": "personal", "id": "9f8c2d70-780a-4383-a3b2-fb4310c18076$bd767495-5e57-417f-a0a7-402ca1ea5051!bd767495-5e57-417f-a0a7-402ca1ea5051", "name": "/", "path": "/" }, "permissions": [ { "createdDateTime": "2024-05-14T08:54:58.723671364Z", "hasPassword": true, "id": "LWBaTydejpVdEEM", "link": { "@libre.graph.displayName": "Link", "@libre.graph.quickLink": false, "preventsDownload": false, "type": "view", "webUrl": "https://localhost:9200/s/HjFXcSVIInxucHa" } } ], "size": 0 } ] }saw-jan commentedon May 14, 2024
Similar with permissions endpoint:
v1beta1/drives/{drive-id}/items/{drive-root-path-id}/createLinkocis version:
Infinite Scale 5.1.0-prealpha+35f3018d11 CommunityJammingBen commentedon May 14, 2024
As discussed in chat, you're right, I overlooked it 🤦 Gonna check later why Web is not displaying the resource.
The name
"."is still wrong of course, so that parts needs a fix on the server side.[-][Sharing NG] sharedByMe endpoint is missing drives that are shared via link[/-][+][Sharing NG] sharedByMe endpoint is missing data for drives shared via link[/+]JammingBen commentedon May 14, 2024
Okay so it seems that
"."is also the issue why Web doesn't list the drives. I adjusted the title and the description of the issue.rhafer commentedon May 14, 2024
Hm, we're just returning what the CS3 API is providing us. So the
nameproperty is just populated with the base partResourceInfo'spathproperty.For spaceroots that is
.as the spaceroot does not really have a (file- or directory-)name I think. I guess you'd expect the space's name to appear there? I guess we could add a special case here for spaceroots. But it feels wrong at least in some ways. AFAIK thenameproperty is supposed to be a file or directory name (the name of a space is neither of that).@butonic Any suggestion how a space root is properly represented as a driveItem?