-
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
wrong notification. User is notified even if share doesn't create #6368
Comments
Hm, this is a tricky one. The gateway creates user shares in a two step process. First is issues a CreateShare request to the shareprovider and second is issues a AddGrant request to the storage provided. When a file is locked (e.g. because it is opened in onlyoffice) CreateShare request succeeds and the AddGrant request fails. The ShareCreated event (which results the user notification) is however already fired by the shareprovider after the CreateShare request succeeded 😢 Ideally we would fire the event only after both requests succeeded. This isn't easily possible as the shareprovider (which is sending the event doesn't about the additional AddGrant call). I am still investigating possible solutions ... |
This reverts commit 52951b4. The change broke authentication for at least the desktop client when using the builtin idp. There seem to be issues in the IDP (lico) which result in the implicit scoped not being added correctly in some case. When that scope is missing the `lg.uuid` claim will not be present in the userinfo and we can correctly match users by id. This reverts back to the old behaviour of matching users by name. Which also brings some aspects of owncloud#904 Fixes owncloud#6368
maybe interesting in the context of the CS3 Apis cs3org/cs3apis#165 |
@tbsbdr Can you qualify? P3 or P2? |
P3 |
Nothing terrible, no crashes no error message. The user just can't find his resource Screen.Recording.2023-07-12.at.16.49.28.mov |
@kobergj @aduffeck we should try to allow that behavior, if possible. currently it is a „no go“ because we need to write the new metadata to the mpk file when the office editor closes before we can write the grant. How would normal file systems handle that? Can you add acls to a file that is locked? I doubt that. If we allow that, we would create the possibility that people also remove exactly the share which is needed to store the outcome of the editing session which would cause data loss. |
@micbar Could we send a notification only if the |
Raising prio because of SLAs from Project. |
@butonic @rhafer @kobergj @aduffeck IMHO we should really invest time to make sharing and setting the grant of a locked file possible. This would close many Tickets where users are confused. From a product POV it is also very hard to add more people to an exisiting WebOffice Session. You would need to directly contact all participants and ask them to leave the session 🙈 That is not easy. |
@dragonchaser and @aduffeck will connect on the Draft PR. @butonic can you please share your opinion on this? |
draft PR with passing CI: cs3org/reva#4464 |
We don't change the mtime, tmtime or etag when modifying grants on a file: cs3org/reva#4464 (comment) (we do change the parent tmtime and propagate it). No objections to allow modifing shares while a file is locked. |
fixed with #8264 |
related #6197
ocis against wopi using https://github.com/owncloud/ocis/blob/master/deployments/examples/ocis_wopi/docker-compose.yml
or open ocis.ocis-wopi.released.owncloud.works
Steps:
Actual: share didn't create/edit/deleted but einstein gets notification
Screen.Recording.2023-05-23.at.13.42.23.mov
Expected: no notification for einstein
The text was updated successfully, but these errors were encountered: