core icon indicating copy to clipboard operation
core copied to clipboard

Enabling/Disabling `shareapi_auto_accept_share` while receiving the requested share results in different behavior

Open sushmita56 opened this issue 3 years ago • 0 comments

Description

While sharing the same file/folder in different ways by one user [group and user] and receiving the requested share by enabling/disabling the shareapi_auto_accept_share by another user results in different behavior

Steps to reproduce

When the shareapi_auto_accept_share is enabled:

  1. Create a group developers and a user demo
  2. Add user demo to group developers
  3. admin creates a folder parentFoder
  4. admin shares the folder parentFolder with group developers
  5. Then the user demo receives the folder and renames it as receivedParentFolder
  6. Now, the admin shares the folder parentFolder with user demo As user demo the folder receivedParentFolder exists and the folder parentFolder from the last share doesn't exist.

When the shareapi_auto_accept_share is disabled:

  1. Create a group developers and a user demo
  2. Add user demo to group developers
  3. admin creates a folder parentFoder
  4. admin shares the folder parentFolder with group developers
  5. Then the user demo accepts the share request from admin
  6. And the user demo renames the folder as receivedParentFolder
  7. Now, the admin shares the folder parentFolder with user demo
  8. Again, the user demo accepts the share request from admin As user demo the folder parentFolder exists and folder receivedParentFolder disappears.

The test is automated and is reproduced manually too.

might be related to this issue #39347

sushmita56 avatar Apr 06 '22 11:04 sushmita56