Issue 3284: Prolog: reject(_) and ok(_) not working without user IDs
Status:  Duplicate
Merged:  issue 2469
Owner: ----
Closed:  Apr 2015
Reported by k.arn...@sap.com, Apr 8, 2015
Affected Version: 2.10.2

What steps will reproduce the problem?

Implement the following prolog rule (from Gerrit's prolog cookbook, example 3):
  submit_rule(submit(W)) :-
      W = label('Verified', reject(_)).

What is the expected output? What do you see instead?
I expect to see a red label Verified in the UI of a change in review, indicating that the change cannot be submitted. What I do see is that I am unable do add reviewers and supply any labels. The error log shows the following:

ERROR com.google.gerrit.server.project.ChangeControl : Submit rule :(user,submit_rule) for change 25731 of <projectName> output invalid result: submit(label(Verified,reject(_17773D9E))). Reason: A label with the status Verified: REJECT must contain a user.

The same holds if I try to supply a label ok(_) without a user name.

Apr 9, 2015
Project Member #2 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 2469