Bug 922687

Summary: Unable to specify transport through rhq.login() method
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: CLIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.6CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-03 14:42:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukas Krejci 2013-03-18 10:06:24 UTC
Description of problem:

The built-in "login" command in the interactive CLI supports specifying the transport for the CLI-server communication as its 5th parameter:
login username pass host 1234 sslservlet
would log in as user "username" with given password on host "host", port 1234 over ssl.

This is not possible using the predefined "rhq" object that otherwise exposes the login and logout commands. This makes it impossible for the non-interactive CLI scripts to manually log in using a specific transport.

Note that the transport is guessed if missing from the port number - any port "ending" with 443 is supposed to be an sslservlet, otherwise servlet is tried.

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

How reproducible:
always

Steps to Reproduce:
1. Configure RHQ server to listen on a non-standard port (say 1234) over HTTPS.
2. Try to connect to it through CLI's builtin "login" command
3. Try the same using the "rhq.login()" method
  
Actual results:
Unable to log in using the rhq.login() method

Expected results:
there should be the possibility to specify the transport with the rhq.login() method

Additional info:

Comment 1 Lukas Krejci 2013-03-18 13:39:05 UTC
commit 755ea862750217ec1fa72e215a5b4b05f8678275
Author: Lukas Krejci <lkrejci>
Date:   Mon Mar 18 14:33:33 2013 +0100

    [BZ 922687] - Enabling login on non-std SSL ports in non-interactive CLI
    
    Added an overloaded method to be able to specify the transport used for
    connection.

Comment 2 Heiko W. Rupp 2013-09-03 14:42:07 UTC
Bulk closing of issues in old RHQ releases that are in production for a while now.

Please open a new issue when running into an issue.