Bug 781821 - [ovirt] [engine-cli] cli-engine fail to parse password with "!" in from bash
Summary: [ovirt] [engine-cli] cli-engine fail to parse password with "!" in from bash
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-cli
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michael Pasternak
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-15 13:06 UTC by Haim
Modified: 2014-01-13 00:50 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-28 10:32:09 UTC
oVirt Team: ---


Attachments (Terms of Use)

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)


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