Bug 807416

Summary: SystemManager.getServerVersion(subject) method is not in the API
Product: [Other] RHQ Project Reporter: Mike Foley <mfoley>
Component: CLIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-02 15:51:57 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:
Attachments:
Description Flags
systemmanager.js none

Description Mike Foley 2012-03-27 17:58:14 UTC
Created attachment 573146 [details]
systemmanager.js

Description of problem:  SystemManager.getServerVersion(subject) method is not in the API


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


How reproducible: 100%


Steps to Reproduce:
1.  use the remote CLI ... as follows:
./rhq-cli.sh -u rhqadmin -p rhqadmin -f /home/mfoley/automation2/automatjon/jon/clitest/resources/js-files/systemmanager.js 

(this file is attached)


  
Actual results:

mfoley@foleymonsterbox1 bin]$ ./rhq-cli.sh -u rhqadmin -p rhqadmin -f /home/mfoley/automation2/automatjon/jon/clitest/resources/js-files/systemmanager.js 
Remote server version is: 4.4.0-SNAPSHOT (94f6790)
Login successful
Exception in thread "main" org.rhq.enterprise.client.script.CLIScriptException: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: TypeError: Cannot find function getServerVersion in object SystemManagerBean. (<Unknown source>#10) in <Unknown source> at line number 10



Expected results:

the method should exist ... for 2 reasons:
1) it is documented in the CLI API doc
2) it was in a developer-written CLI test at this location 
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=blob_plain;f=modules/cli-tests/src/test/script/org/rhq/enterprise/remoting/cli/test_SystemManager.js;h=4316690446e33b4d433d7b07eb1a5ce7e83fcc8e;hb=HEAD

Additional info:  attachments

Comment 1 Mike Foley 2012-03-27 18:48:13 UTC
API changed unexpectedly ... 

* ccrouch-grabfood is now known as ccrouch
<jshaughn> ok, it was unceremoniously changed 2/9/11.  It was not deprecated. Just manhandled.

Comment 2 Mike Foley 2012-03-27 18:51:08 UTC
link to API doc is not correct for master

<jshaughn> the doc does match the API, that was the API for that version. It is *not* the right link for master.

Comment 3 Mike Foley 2012-03-27 19:17:21 UTC
<jshaughn> sunny-dee: I thought so
<sunny-dee> i can get with ips about what to do for wiki publishing
<jshaughn> Our RHQ release process should be updated to include this in the RHQ wiki
<jshaughn> which, as mfolye just pointed out, is sadly out of date
<jshaughn> I'm not sure how easy it is for us to actually add the requisite pages to the wiki
<sunny-dee> i think the rhq wiki even points to, like, the jon 2.3 api docs

Comment 4 Mike Foley 2012-04-02 15:41:59 UTC
documented and x-ref'd in https://bugzilla.redhat.com/show_bug.cgi?id=803737

Comment 5 Mike Foley 2012-04-02 15:51:57 UTC
the resolution of this BZ 807393

*** This bug has been marked as a duplicate of bug 807393 ***