Keep file id on move - #4524
Conversation
This removes the duplicated code
Sabre usually deletes the target node on MOVE before proceeding with the actual move operation. This fix prevents this to happen in case the source node is a FutureFile.
|
@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @icewind1991, @SergioBertolinSG and @rullzer to be potential reviewers. |
|
CI is not happy 😞 |
Codecov Report
@@ Coverage Diff @@
## master #4524 +/- ##
=============================================
- Coverage 54.26% 31.39% -22.88%
- Complexity 21897 21898 +1
=============================================
Files 1348 1348
Lines 83971 83383 -588
Branches 1334 1334
=============================================
- Hits 45564 26175 -19389
- Misses 38407 57208 +18801
|
Fixed by renaming the copied class 🙈 |
MorrisJobke
left a comment
There was a problem hiding this comment.
Tested and works 👍 Also fixes #4284
@rullzer @icewind1991 @nickvergessen Can one of you look into this? |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
dd92f4b to
20c7975
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
20c7975 to
a9d06c0
Compare
|
@nickvergessen Unit Tests are still failing |
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
@nickvergessen Backport? |
|
Don't really feel like backporting a 800 lines patch like this to 11.... |
| if ($node instanceof \OCA\DAV\Connector\Sabre\Node) { | ||
| if (!$node->getFileInfo()->isReadable()) { | ||
| // avoid detecting files through this means | ||
| throw new NotFound(); |
There was a problem hiding this comment.
Regression, this breaks dir listing for folders which have an item blocked by files access control:
nextcloud/files_accesscontrol#65
Downstream 27508