-
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
OCC Setting an array Configuration Value fails #22131
Comments
@LukasReschke can you have a look please? |
Documentation lies, this has been merged with owncloud-archive/documentation#2092 and is 9.0 only. @carlaschroder You merged this with owncloud-archive/documentation@222e44b into stable8.2. Can you double check? THX. |
@LukasReschke Thanks a lot with the fast response |
Sorry, but these commands are on 8.2.2:
It appears to be a syntax problem:
So, who knows the correct syntax? |
@carlaschroder |
The commands itself: Yes. But only for strings, any other data type modification is only available in master. So "Setting an array Configuration Value" is only applicable for 9.0 |
The syntax itself will be correct on 9.0:
|
Thanks @LukasReschke |
Is there any chance of adding a helpful error or help message to 8.2? The commands are there, with no indication that they're not going to work as expected. |
Of course I will add a doc note. |
This is getting weirder. When I run config:system:set for trusted_domains or maintenance, and then try to open the Web GUI, I get errors. When I manually correct config.php I get the same errors. Does config:system:set write to some secret config file that overrides config.php? I'm opening a separate issue for all this. |
Allrightythen, fixed in docs. config:system:set does not write to config.php with correct syntax, and does not give error messages when you use wrong config values. I'll follow it in 9.0 & report any 9.0 issues that I find. |
Thanks for reporting this, @sporokh |
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. |
From the official document:
https://doc.owncloud.org/server/8.2/admin_manual/configuration_server/occ_command.html
Some configurations (e.g. the trusted domain setting) are an array of data. In order to set (and also get) the value of one key, you can specify multiple config names separated by spaces:
$ sudo -u www-data php occ config:system:get trusted_domains
localhost
owncloud.local
sample.tld
To replace sample.tld with example.com trusted_domains => 2 needs to be set:
$ sudo -u www-data php occ config:system:set trusted_domains 2 --value=example.com
System config value trusted_domains => 2 set to string example.com
I got owncloud server 'version' => '8.2.2.2' up and runing. But when I try to replace trusted domains, I got this kind of exception:
sudo -u www-data php occ config:system:set trusted_domains 1 --value=example.com
[RuntimeException] Too many arguments.
The text was updated successfully, but these errors were encountered: