************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC. *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS! *****
************************************************************
Affected Version: 2.9-dirty
What steps will reproduce the problem?
1. add rules.pl with the "1+1=2" rule from the Prolog cookbook to meta/config
2. Give 2 Code-Review "+1" and a Verify "+1" for a commit
3. Submit button appears.
What is the expected output? What do you see instead?
1. Clicking submit should actually submit the commit - instead, an error message pops up and the commit is not submitted.
2. Further review of that commit should be possible by clicking the review/reply button - instead, clicking that button doesn't allow you to either change the Code-Review score nor the Verified score.
Please provide any additional information below.
In our rules.pl, we were using at first the version of the rule using the gerrit:default_submit rule and it was not working. I did not investigate the error log from the server at that point, and I switched the rule to the 2nd version, not using default_submit. For that one, I tried to investigate a bit, and it seems that the return value of the sum function pollutes the ok(_) statement with some garbage - which is not corresponding to a user ID. I hope this could be at least a lead for finding the root issue.