Skip to content

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

Closed

Description

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

Activity

  1. MorrisJobke commented on Mar 25, 2015

    @MorrisJobke
    Contributor

    cc @schiesbn @rullzer

  2. nickvergessen commented on Oct 27, 2015

    @nickvergessen
    ContributorAuthor

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

  3. added this to the milestone on Oct 27, 2015
  4. lock commented on Aug 6, 2019

    @lock

    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.

  5. locked as resolved and limited conversation to collaborators on Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions