-
Notifications
You must be signed in to change notification settings - Fork 2.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
Option to mount a new local storage disabled #27590
Conversation
To discuss :
|
Are these two checkbox items related to your change or do you observe these also on master ? |
@PVince81 , The logs are :
|
Do you observe these log entries also when running on master ? I don't see how these relate to your changes. It could be another important bug you just discovered. |
Http::STATUS_UNPROCESSABLE_ENTITY | ||
); | ||
} | ||
$canCreateNewLocalStorage = \OC::$server->getConfig()->getSystemValue('files_external_allow_create_new_local', false); |
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.
move this to function create
.
here you are also preventing updates to happen, so existing local storages cannot be updated/saved (red indicator)
On my local instance I didn't see any log entries related to scanner, so it might be specific to your env. |
@PVince81 , |
…ow_create_new_local variable specifically set to true in config.php
Ready for a merge? |
|
||
$this->updateStorageStatus($newStorage); | ||
$this->updateStorageStatus($newStorage); |
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.
use tabs, not spaces
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.
Sure, will do.
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.
@PVince81 ,
These are tabs not spaces, I guess GitHub is just trying to show the changed indentation?
Tested, works 👍 @noveens please fix the tabs then we can merge this |
} | ||
$canCreateNewLocalStorage = \OC::$server->getConfig()->getSystemValue('files_external_allow_create_new_local', false); | ||
|
||
if ($canCreateNewLocalStorage === 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.
Unfortunately, this also triggers for smb. As it seems it prevents adding any external storage. Also it returns null and no meaningful message is shown in the web ui. Will add an issue.
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.
see #27621
Regression found, fixed here: #27621 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #26653
Description
Option to mount a new local storage removed unless
files_external_allow_create_new_local
variable specifically set totrue
in config.phpRelated Issue
#26653
How Has This Been Tested?
Included the
files_external_allow_create_new_local
option and set totrue
andfalse
, works as desiredTypes of changes
Checklist:
@PVince81