Skip to content

wrong notification. User is notified even if share doesn't create #6368

Closed

Description

@v-scharf

related #6197

ownCloud
3.0.0-rc.4+c08439f23
7.0.0-rc.37

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:

  • share, delete or edit opening in the onlyOffice file to user einstein

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

Activity

  1. moved this from Qualification to Prio 2 in Infinite Scale Team Boardon May 24, 2023
  2. added
    Priority:p2-high
    on May 24, 2023
  3. self-assigned this
    on May 30, 2023
  4. moved this from Prio 2 to In progress in Infinite Scale Team Boardon May 30, 2023
  5. rhafer commented on May 30, 2023

    @rhafer
    Contributor

    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 ...

  6. added a commit that references this issue on Jun 1, 2023
    4bc0a15
  7. removed their assignment
    on Jul 10, 2023
  8. moved this from In progress to Prio 2 in Infinite Scale Team Boardon Jul 10, 2023
  9. micbar commented on Jul 11, 2023

    @micbar
    Contributor

    maybe interesting in the context of the CS3 Apis cs3org/cs3apis#165

  10. micbar commented on Jul 11, 2023

    @micbar
    Contributor

    @tbsbdr Can you qualify? P3 or P2?

  11. tbsbdr commented on Jul 12, 2023

    @tbsbdr

    P3
    what happeny if you click on the notification (via the bell)?

  12. v-scharf commented on Jul 12, 2023

    @v-scharf
    ContributorAuthor

    P3 what happeny if you click on the notification (via the bell)?

    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
  13. 4 remaining items

  14. 2403905 commented on Jan 15, 2024

    @2403905
    Contributor

    @micbar Could we send a notification only if the userlog got the sequence of two events CreateShare and AddGrant?

  15. moved this from Prio 3 or less to Prio 2 in Infinite Scale Team Boardon Jan 16, 2024
  16. added
    Priority:p2-high
    and removed
    Priority:p3-medium
    on Jan 16, 2024
  17. micbar commented on Jan 16, 2024

    @micbar
    Contributor

    Raising prio because of SLAs from Project.

  18. micbar commented on Jan 16, 2024

    @micbar
    Contributor

    @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.

  19. self-assigned this
    on Jan 17, 2024
  20. moved this from Prio 2 to In progress in Infinite Scale Team Boardon Jan 17, 2024
  21. micbar commented on Jan 22, 2024

    @micbar
    Contributor

    @dragonchaser and @aduffeck will connect on the Draft PR.

    @butonic can you please share your opinion on this?

  22. aduffeck commented on Jan 22, 2024

    @aduffeck
    Contributor

    draft PR with passing CI: cs3org/reva#4464

  23. butonic commented on Jan 22, 2024

    @butonic
    Contributor

    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).
    We can declare oc:permissionsand oc:share-id as unlockable to be RFC compliant: cs3org/reva#4464 (comment)

    No objections to allow modifing shares while a file is locked.

  24. added this to the Release 5.0.0 milestone on Jan 22, 2024
  25. dragonchaser commented on Jan 23, 2024

    @dragonchaser
    Contributor

    fixed with #8264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority:p2-highType:Bug

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions