Go to file
Shawn Pearce 23050e196c Gracefully fail when submit_rule/1 has no solutions
If a submit_rule is coded with no solution for a change, e.g.:

  submit_rule(submit()) :- fail.

the server used to crash with 500s from a number of REST APIs,
caused by a ClassCastException inside of SubmitRuleEvaluator.

An empty result list is not a ListTerm, it is a SymbolTerm and using
the NIL instance '[]'. This cannot be cast to a ListTerm for return
to the caller.

Instead return List<Term> and handle the conversion, ensuring an
empty list is returned to callers when there are no results.

Change-Id: Iea1211afb2f3970ba98ea1eff14df07452cf5ccd
2013-04-19 10:28:11 -07:00
2012-10-18 13:38:51 +02:00
2013-04-18 09:17:27 +09:00
2013-03-18 09:56:26 -07:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
2013-04-09 20:10:01 +08:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB