Skip to content
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

Event "OCP\Share::post_unshare" misses owner of shares for reshares #9761

Closed
nickvergessen opened this issue Jul 21, 2014 · 3 comments
Closed
Assignees
Milestone

Comments

@nickvergessen
Copy link
Contributor

  1. Create a folder "FolderName" as UserA
  2. Share FolderName as UserA with UserB
  3. Reshare FolderName as UserB with UserC
  4. Reshare FolderName as UserC with public link
  5. Unshare FolderName as UserA

Expected deletedShares in event:

    array (size=3)
      0 => 
        array (size=6)
          'id' => string '29' (length=2)
          'shareWith' => null
          'itemTarget' => string '/438' (length=4)
          'itemType' => string 'folder' (length=6)
          'shareType' => int 3
          'uidOwner' => string 'UserB' (length=5)
          'fileTarget' => string '/FolderName' (length=11)
      1 => 
        array (size=6)
          'id' => string '31' (length=2)
          'shareWith' => string 'UserC' (length=5)
          'itemTarget' => string '/438' (length=4)
          'itemType' => string 'folder' (length=6)
          'shareType' => int 0
          'uidOwner' => string 'UserB' (length=5)
          'fileTarget' => string '/FolderName' (length=11)
      2 => 
        array (size=9)
          'id' => int 28
          'itemType' => string 'folder' (length=6)
          'itemSource' => string '438' (length=3)
          'shareType' => int 0
          'shareWith' => string 'UserB' (length=5)
          'itemParent' => null
          'uidOwner' => string 'UserA' (length=5)
          'fileSource' => int 438
          'fileTarget' => string '/FolderName' (length=11)

Actual:

    array (size=3)
      0 => 
        array (size=6)
          'id' => string '29' (length=2)
          'shareWith' => null
          'itemTarget' => string '/438' (length=4)
          'itemType' => string 'folder' (length=6)
          'shareType' => int 3
          'fileTarget' => string '/FolderName' (length=11)
      1 => 
        array (size=6)
          'id' => string '31' (length=2)
          'shareWith' => string 'UserC' (length=5)
          'itemTarget' => string '/438' (length=4)
          'itemType' => string 'folder' (length=6)
          'shareType' => int 0
          'fileTarget' => string '/FolderName' (length=11)
      2 => 
        array (size=9)
          'id' => int 28
          'itemType' => string 'folder' (length=6)
          'itemSource' => string '438' (length=3)
          'shareType' => int 0
          'shareWith' => string 'UserB' (length=5)
          'itemParent' => null
          'uidOwner' => string 'UserA' (length=5)
          'fileSource' => int 438
          'fileTarget' => string '/FolderName' (length=11)

Without this information other apps (such as the activity app) can not use the ownerUid to notify (or whatever) the right users.

@MorrisJobke
Copy link
Contributor

cc @schiesbn @rullzer

@nickvergessen
Copy link
Contributor Author

@rullzer can this be covered by sharing 2.0 please?
If so please assign yourself and set the milestone

@lock
Copy link

lock bot commented Aug 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants