Bug 760148
Summary: | Unprivileged user unable to use the CLI in any way | |||
---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Lukas Krejci <lkrejci> | |
Component: | CLI | Assignee: | Lukas Krejci <lkrejci> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 4.3 | CC: | hrupp, jshaughn, skondkar | |
Target Milestone: | --- | |||
Target Release: | JON 3.0.0, RHQ 4.3.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 4.3.0 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 783869 (view as bug list) | Environment: | ||
Last Closed: | 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: | 783869 |
Description
Lukas Krejci
2011-12-05 14:20:15 UTC
Note that the failure is purely because of the fact that the CLI wants to print out the version of the server it has connected to and fails, because the method it uses to find that out requires MANAGE_SETTINGS. lukas reports regression from JON 2.4.1 This got introduced by commit 0bdeb3eb1c3bfa742697f6cdac57b0c80d80af36 master: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=bfb46035204786e3e1297a41cdb1eede7e901e77 release_jon3.x: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=b990a6435cb882c765fbe6e5c9dfc16e6ba54395 Author: Lukas Krejci <lkrejci> Date: Mon Dec 5 16:43:27 2011 +0100 [BZ 760148] - Use the unprivileged method introduced by the commit 0589b9ee8488bd1 for BZ 694892 for obtaining the version info upon the CLI login. (10:43:21 AM) ccrouch: jshaughn: so can you confirm http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=0bdeb3eb1c3bfa742697f6cdac57b0c80d80af36 is the change that originally introduced the problem? (10:44:09 AM) jshaughn: yep, looks like that's the one This is the same problem as bug 694892. The fix looks good. Verified in Jon3GA-2 build. Created a user 'testuser' without MANAGE_SETTINGS. Tried below commands in CLI and verified that testuser is able to login successfully: 1. [root@suniltest rhq-remoting-cli-4.2.0.JON300.GA]# bin/rhq-cli.sh RHQ - RHQ Enterprise Remote CLI 4.2.0.JON300.GA unconnected$ login testuser redhat Remote server version is: 3.0.0.GA (e23441b:1ca6ad9) Login successful testuser@localhost:7080$ ------------------------------------------------------------- 2. [root@suniltest rhq-remoting-cli-4.2.0.JON300.GA]# bin/rhq-cli.sh --host suniltest.usersys.redhat.com --user testuser --password redhat RHQ - RHQ Enterprise Remote CLI 4.2.0.JON300.GA Remote server version is: 3.0.0.GA (e23441b:1ca6ad9) Login successful testuser.redhat.com:7080$ -------------------------------------------------------------- 3. Executed a script as below: [root@suniltest rhq-remoting-cli-4.2.0.JON300.GA]# bin/rhq-cli.sh --host suniltest.usersys.redhat.com --user testuser --password redhat -f testscript.js Remote server version is: 3.0.0.GA (e23441b:1ca6ad9) Login successful Test Output from script execution! [root@suniltest rhq-remoting-cli-4.2.0.JON300.GA]# ----------------------------------------------------------------- 4. Created a test.js file with below content: rhq.login("testuser", "redhat"); println(subject); Executed as below: [root@suniltest rhq-remoting-cli-4.2.0.JON300.GA]# bin/rhq-cli.sh -f test.js Remote server version is: 3.0.0.GA (e23441b:1ca6ad9) Subject[id=10001,name=testuser] [root@suniltest rhq-remoting-cli-4.2.0.JON300.GA]# ------------------------------------------------------------------ Marking verified as it is working as expected. verified JON GA #2 marking VERIFIED JON 3 bugs to CLOSED/CURRENTRELEASE changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE |