-
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
[SharingNg] Cannot find {item-id}
in share invite endpoint while resharing a resource inside a shared folder
#8157
Comments
Leaving this issue for open now since the reshare feature to expected to be drop in feature as per this comment #8275 (review). So this can be left open untill decided. |
@micbar That is bascially what happens here (in a more generic way). Though I guess we should return a 400 an not a 404 here. @PrajwolAmatya please share the exact url of the request that you were using. |
@rhafer This is the url I used for the share invitation as mentioned in https://owncloud.dev/libre-graph-api/#/drives.permissions/Invite. I was trying some tests on resharing cases, I found that while resharing,
|
@PrajwolAmatya i'm not sure if i understood your problem, the sharing-ng is currently in development and we still have lot of moving parts. regarding the can you try to explain how we can help? @micbar i agree, we should check and disallow, can you or ralf add the check, i have not enough time currently since the k6 squad starts tomorrow. |
@fschade I was testing on resharing of a file that is inside of a shared folder. And, I could not figure out what should be the value of the |
Closing this issue because reshare has been deprecated from ocis on this PR #8762. Mentioned in migration doc https://github.com/owncloud/docs-ocis/pull/739/files#diff-04cd79e526c8a7f0162d8fc5bc5fa8c501fe9e5899024268837c05a74349b26cR148-R149 |
Description
When a resource is shared with a user, and that user tries to reshare the shared resource, then the value of
item-id
in the API endpoint for share invite as mentioned in https://owncloud.dev/libre-graph-api/#/drives.permissions/Invite takes theshare mount id
of that resource, that is,v1beta1/drives/{drive-id}/items/{share-mount-id}/invite
.Alice
creates a filetestfile.txt
Alice
shares file to userBrian
Brian
reshares the filetestfile.txt
to userCarol
using endpointv1beta1/drives/{drive-id}/items/{share-mount-id}/invite
.testfile.txt
But in the case as follows:
Alice
creates a folderfolderToShare
Alice
uploads filetestfile.txt
inside folderfolderToShare
Alice
shares folderfolderToShare
to userBrian
Brian
tries to reshare the filetestfile.txt
that is inside the shared folderfolderToShare
In this case, what should be the value of
item-id
in the API endpoint? I tried using thefile-id
of filetestfile.txt
, and it returns the following error:The text was updated successfully, but these errors were encountered: