Red Hat Bugzilla – Bug 698267
Implicit variables in CLI
Last modified: 2013-09-02 03:18:06 EDT
Description of problem:
Typing this command returns an error: var criteria = new ResourceCritiera();
The documentation listed below, section 2.3, indicates that should work.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2. login rhqadmin rhqadmin
3. var criteria = new ResourceCritiera();
ReferenceError: "ResourceCritiera" is not defined. (<Unknown source>#1)
should be identical to typing the following:
var criteria = new org.rhq.core.domain.criteria.ResourceCriteria();
Adding additional information. This is not a regression. Same behavior in JON 2.4.1. Since it is not a regression I am removing the block rhq4....
Dropping to medium priority as there are workarounds and this is not a regression.
assigning to Deon to make sure our documentation reflects what actually works
in the CLI
I believe this is just a typo actually:
notice the difference:
var criteria = new ResourceCritiera();
vs the correct:
var criteria = new ResourceCriteria();
Hooray! Typos are easy to fix.
Link to the fixed typos:
If you look for ResourceCritiera, it shouldn't be there.
Changes looks fine on the comment #8 link.
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.