Bug 698267

Summary: Implicit variables in CLI
Product: [Other] RHQ Project Reporter: Mike Foley <mfoley>
Component: DocumentationAssignee: Deon Ballard <dlackey>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0.Beta2CC: hrupp, jkandasa, lkrejci
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-02 07:18:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 625146    

Description Mike Foley 2011-04-20 14:33:36 UTC
Description of problem:

Typing this command returns an error:  var criteria = new ResourceCritiera();

The documentation listed below, section 2.3, indicates that should work.

https://docs.redhat.com/docs/en-US/JBoss_Operations_Network/2.4/html/CLI_Guide/Working_with_the_CLI-Implicit_Variables.html

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1.  run-cli.sh
2.  login  rhqadmin rhqadmin 
3.  var criteria = new ResourceCritiera();
  
Actual results:
ReferenceError: "ResourceCritiera" is not defined. (<Unknown source>#1)

Expected results:
should be identical to typing the following:
var criteria = new org.rhq.core.domain.criteria.ResourceCriteria();


Additional info:

Comment 2 Mike Foley 2011-04-20 17:16:28 UTC
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....

Comment 3 Charles Crouch 2011-08-11 20:37:43 UTC
Dropping to medium priority as there are workarounds and this is not a regression.

Comment 4 Charles Crouch 2011-09-27 13:06:53 UTC
assigning to Deon to make sure our documentation reflects what actually works 
in the CLI

Comment 5 Lukas Krejci 2011-11-16 11:20:06 UTC
I believe this is just a typo actually:

notice the difference:

var criteria = new ResourceCritiera();

vs the correct:

var criteria = new ResourceCriteria();

Comment 6 Deon Ballard 2011-11-16 22:10:45 UTC
Hooray! Typos are easy to fix.

Comment 9 Jeeva Kandasamy 2012-08-28 06:22:23 UTC
Changes looks fine on the comment #8 link.

Comment 10 Heiko W. Rupp 2013-09-02 07:18:06 UTC
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.