-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix renaming of non-renamble mounts #5596
Conversation
$manager->moveMount($sourceMountPoint, $mount1->getMountPoint()); | ||
if ($internalPath1 === '') { | ||
if ($mount1 instanceof MoveableMount) { | ||
if ($this->isTargetAllowed($absolutePath2)) { |
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.
merge with the mount1 instanceof MoveableMount
if above?
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.
That would require a seperate ($internalPath1 === '' && !$mount1 instanceof MoveableMount)
case, imo this one is clearer than splitting it up
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
e7050ab
to
359a583
Compare
Codecov Report
@@ Coverage Diff @@
## master #5596 +/- ##
=========================================
Coverage ? 53.98%
Complexity ? 22466
=========================================
Files ? 1390
Lines ? 85980
Branches ? 1328
=========================================
Hits ? 46418
Misses ? 39562
Partials ? 0
|
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!
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 👍
May this go into a bugfix release of 12.x or do we need to wait until 13.x? |
It is already backported to stable12 and will land in 12.0.1: #5757 |
Fixes nextcloud/groupfolders#33