Bug 785263 - JON 3.01 RC1 CLI sample drift.js ...error using utility method "fetchHistory"
Summary: JON 3.01 RC1 CLI sample drift.js ...error using utility method "fetchHistory"
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 3.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-27 19:59 UTC by Mike Foley
Modified: 2012-01-27 20:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-27 20:20:23 UTC


Attachments (Terms of Use)

Description Mike Foley 2012-01-27 19:59:02 UTC
Description of problem:  JON 3.01 RC1  CLI sample drift.js ...error using utility method "fetchHistory"


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


How reproducible: 100%


Steps to Reproduce:
1.  with the UI ... create a drift configuration named 'mydrift'  (note: in the base directory ... there is a folder named 'folder1')
2.  with the CLI ... ./rhq-cli.sh -u rhqadmin -p rhqadmin
3.  exec -f samples/drift.js
3.  fetchHistory(10002, 'folder1/abc.txt')
  
Actual results:

ReferenceError: "foreach" is not defined. (<Unknown source>#198)

Expected results:  


Additional info:


rhqadmin@localhost:7080$ fetchHistory(10002, 'folder1/abc.txt')
ReferenceError: "foreach" is not defined. (<Unknown source>#198)
fetchHistory(10002, 'folder1/abc.txt') 
^

Comment 1 Mike Foley 2012-01-27 20:01:50 UTC
note: in the above example 

the base folder being watched by drift is 

/home/mfoley/folderwatchedbyDrift

under that ... there is a folder named 'folder1' ... and then a filed named abc.txt in that folder.  

10002 is the resource id

Comment 2 Mike Foley 2012-01-27 20:20:23 UTC
new information ... i didn't have util.js loaded ....

rhqadmin@localhost:7080$ fetchHistory(10002, 'folder1/abc.txt')
NativeObject:
	className: Object


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