Bug 781821

Summary: [ovirt] [engine-cli] cli-engine fail to parse password with "!" in from bash
Product: [Retired] oVirt Reporter: Haim <hateya>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, bazulay, iheim, mgoldboi, yeylon, ykaul
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-02-28 10:32:09 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:

Description Haim 2012-01-15 13:06:04 UTC
Description of problem:

run the following command: 

ovirt-engine-cli]# ovirt-shell --connect --url "http://<ipaddr>:8080/api" --user "admin@internal" --password "lallalalala!"
-bash: !": event not found


git commit: ed00a08d51006b1b90923cb9d89b57b1e4d02be2

Comment 1 Michael Pasternak 2012-02-28 10:32:09 UTC
'!' is a special character used for cmd-shell, use \' to wrap password
string, i.e:

ovirt-shell --connect --url "http://<ipaddr>:8080/api"
--user "admin@internal" --password 'lallalalala!'

(this is ordinal escape-sequence cmd behaviour: when string enclosed by \' - 
all characters (including special) in it get ignored)