-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
Tested it and fixed our issue. Thank you so much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
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