Use parent wrapper to properly handle moves on the same source/target storage#26980
Use parent wrapper to properly handle moves on the same source/target storage#26980
Conversation
… storage Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
/backport to stable21 |
|
/backport to stable20 |
|
Tested it and fixed our issue. Thank you so much! |
|
Would it be possible to add a test to avoid this type of issues? |
|
will this be included in 21.0.2 or shall we patch manually until a later version? |
21.0.2 will definitely not have it, because it will be released on Thursday and the merge window for that version is already closed. Maybe we backport this to 21.0.3. @juliushaertl Opinions on the backport? |
|
Ah .. it already is scheduled for a backport |
|
/backport to stable21 |
|
/backport to stable20 |
|
The backport to stable21 failed. Please do this backport manually. |
|
The backport to stable20 failed. Please do this backport manually. |
|
The backport to stable21 failed. Please do this backport manually. |
|
The backport to stable20 failed. Please do this backport manually. |
|
Am not a developer just admin and I tried this fix, and it seems to work, BUT:
The failure is the same. Path is /mnt/data/shared_subfolder instead of /mnt/data/__groupfolders/number/shared_subfolder. Copying/Moving INTO the share works now, moving something out of the share doesn't work. The only way is to copy the file/folder to the destination and then delete it. |
Steps to reproduce:
Moving the part file to the final one failed after #25568 as the general wrapper logic to use a rename instead of a moveFromStorage from
server/lib/private/Files/Storage/Wrapper/Wrapper.php
Lines 573 to 577 in 3e69ed8
Fixes nextcloud/groupfolders#1453
Fixes nextcloud/groupfolders#1445