Issue 3436: internal server error when trying to publish invalid config edit
Status:  New
Owner: ----
Reported by Martin.W...@gmail.com, Jun 16, 2015
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
With change [1] we got a small improvement. Instead of saying "500 internal server error" in now says "invalid project configuration".

[1] https://gerrit-review.googlesource.com/68842
Oct 26, 2015
#2 carlo...@gmail.com
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.