core
core copied to clipboard
Enabling/Disabling `shareapi_auto_accept_share` while receiving the requested share results in different behavior
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:
- Create a group
developersand a userdemo - Add user
demoto groupdevelopers -
admincreates a folderparentFoder -
adminshares the folderparentFolderwith groupdevelopers - Then the user
demoreceives the folder and renames it asreceivedParentFolder - Now, the
adminshares the folderparentFolderwith userdemoAs userdemothe folderreceivedParentFolderexists and the folderparentFolderfrom the last share doesn't exist.
When the shareapi_auto_accept_share is disabled:
- Create a group
developersand a userdemo - Add user
demoto groupdevelopers -
admincreates a folderparentFoder -
adminshares the folderparentFolderwith groupdevelopers - Then the user
demoaccepts the share request from admin - And the user
demorenames the folder asreceivedParentFolder - Now, the
adminshares the folderparentFolderwith userdemo - Again, the user
demoaccepts the share request from admin As userdemothe folderparentFolderexists and folderreceivedParentFolderdisappears.
The test is automated and is reproduced manually too.