Bug 698267 - Implicit variables in CLI
Summary: Implicit variables in CLI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Documentation
Version: 4.0.0.Beta2
Hardware: All
OS: All
medium
medium vote
Target Milestone: ---
: ---
Assignee: Deon Ballard
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: jon30-bugs
TreeView+ depends on / blocked
 
Reported: 2011-04-20 14:33 UTC by Mike Foley
Modified: 2013-09-02 07:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-02 07:18:06 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.