Red Hat Bugzilla – Bug 966293
Add validation for expression when creating Dynagroup Definition
Last modified: 2013-09-24 15:08:56 EDT
Description of problem:
The current version lets user to create invalid definition of dynagroup and it firstly fails with the first recalculation call. The should be some mechanism for verifying the correctness of the expression defined by this  grammar.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. open a view for creating new dynagroup definition (url fragment #Inventory/Groups/DynagroupDefinitions/0)
2. type in some name
3. type in some invalid expression. You may want to use "rhq rocks!" for instance.
4. save it
it was saved
the exception with a clear message describing what is wrong should be thrown
The validation should be done also for the methods exposed via the CLI
moving out of JON 3.2 per 7/2/2013 meeting with loleary, heiko, foley, crouch
time: 2013-07-10 18:44:17 +0200
author: Jirka Kremser - firstname.lastname@example.org
message: [BZ 966293] - Add validation for expression when creating Dynagroup
Definition - adding a check to
GroupDefinitionManagerBean.validate() method. Also making
sure, the right message is correctly propagated to the web UI.
Build Number: e3e001b
for both the UI and CLI
Bulk closing of RHQ 4.9 verified items