| Issue 3436: | internal server error when trying to publish invalid config edit | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Affected Version:
2.11
What steps will reproduce the problem?
1. Click on the 'Edit Config' button
2. Save some changes to 'project.config' which are not allowed
(e.g. reference some not-existing group)
3. Click on 'Publish Edit'
What is the expected output? What do you see instead?
Gerrit should show the actual error with the project configuration.
Bonus points when that includes a link back to the editor (maybe with line number).
Extra bonus points for checking the project configuration on-the-fly and highlighting errors while editing it.
Instead it just shows the black "500 internal server error", without any hint what went wrong.
The log is more helpful:
ERROR com.google.gerrit.server.git.validators.CommitValidators : User admin tried to push invalid project configuration xyz for All-Projects
org.eclipse.jgit.errors.ConfigInvalidException: invalid project configuration
at com.google.gerrit.server.git.validators.CommitValidators$ConfigValidator.onCommitReceived(CommitValidators.java:312)
However, the user should not have to look at the log file in order to know how to amend his edit.
Please provide any additional information below.
This may be related to bug 967 [1], however this bug prevents the user from even editing the configuration as he gets no feedback what went wrong.
[1] https://code.google.com/p/gerrit/issues/detail?id=967
Jul 1, 2015
Project Member
#1
edwin.ke...@gmail.com
Oct 26, 2015
Got same cryptic 500 error message. But for following error ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in POST /changes/386/edit:publish com.google.gerrit.server.project.InvalidChangeOperationException: missing Change-Id in commit message footer Change was produces through gerrit web ui. |
|
| ► Sign in to add a comment |