-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Can not change encryption directory #6805
Conversation
@@ -146,7 +146,7 @@ protected function prepareNewRoot($newRoot) { | |||
'ownCloud will detect this folder as key storage root only if this file exists' | |||
); | |||
|
|||
if ($result === false) { | |||
if ($result !== true) { |
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.
Currently the View returns null
, because
server/lib/private/Files/View.php
Line 1103 in b9b88aa
if (Filesystem::isValidPath($path) |
returns false and therefor nothing is executed.
@schiessle Any news for this? Would be good to get it in. |
Let's move this to 14. |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9c4baa0
to
9259b8a
Compare
Codecov Report
@@ Coverage Diff @@
## master #6805 +/- ##
=============================================
- Coverage 51.93% 35.09% -16.84%
Complexity 25418 25418
=============================================
Files 1609 1609
Lines 95329 95329
Branches 1378 1378
=============================================
- Hits 49506 33454 -16052
- Misses 45823 61875 +16052
|
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 with my changes
second reviewer needed |
👍 for not my code |
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Fix #6769
@schiessle there is an issue here
/../
in pathsTherefor you can only change the root inside your data directory, but not move it out of it.
If that is intended, we should have this commit here and display a better error message