-
Notifications
You must be signed in to change notification settings - Fork 159
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
[QA] blank page with trivial syntax errors in config.json #4636
Comments
Not so easy. The same happens when you add a comment in the json file. @kulmann @LukasHirt We could add config.json validation, but please be sure that this doesn't happen on every request. |
We fetch the config once when Web is opened: Line 214 in 5878eeb
So it should be already safe to do the validation and not be afraid of having it in every request. The config is then afterwards saved to store. |
Something to consider https://www.npmjs.com/package/jsonschema |
ToDo QA-Team:
|
@individual-it Would it be possible to get this done with unit tests? |
good thought, I haven't looked into what they currently doing but I've changed the todo above |
Seen with web-1.0.2
Follow the instructions at https://github.com/owncloud/QA/blob/master/Server/Test_Plan_web.md
but introduce a trivial syntax error in config.json -- e.g. a trailing comma
,
before closing}
brace:owncloud.log
with log verbosity "Everything".Expected behaviour: The json syntax error is reported. Somewhere.
The text was updated successfully, but these errors were encountered: