-
-
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
Status code should be 500 on error #6893
Comments
I can take this issue. |
The function OC_Util::checkServer that arrives after checkConfig also tracks if config is writable.
Is it necessary to have those two checks ? Should I do a unit test for checking the header status ? If yes, in which test file should I add it ? |
I think it is completely sufficient to have an error when changing the configuration fails. I don't know if a proper handling in this case already exists. Having php files non-writable is a sane security decision for me. However, if writable config files are recommended, this information would fit into the "Admin" –> "Security & setup warnings" section. |
There is even an option for the config file in case the config file is read only:
I would prefer this option as well. Tell user to either set the option "read-only" in the config file or make it writable. Most people are quite responsive to messages in |
Notes:
Questions:
|
Add hint msg, you can make config file read only If the config.php is not writable, print an error message: #6893 - set config writable - or set option to keep it read only Signed-off-by: Eric Masseran <rico.masseran@gmail.com>
Add hint msg, you can make config file read only If the config.php is not writable, print an error message: #6893 - set config writable - or set option to keep it read only Signed-off-by: Eric Masseran <rico.masseran@gmail.com>
Steps to reproduce
Expected behaviour
The server should return status code 500 to alert standard monitoring systems. (Or ignore, that the config is not writeable)
Actual behaviour
The server returns status code 200
Server configuration
Operating system:
Debian
Web server:
Apache 2
Database:
Postgresql
PHP version:
5.6
Nextcloud version: (see Nextcloud admin page)
12
The text was updated successfully, but these errors were encountered: