targetcli stops parsing command at caret character

Bug #1173433 reported by Craig Putnam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
targetcli (Ubuntu)
New
Undecided
Unassigned

Bug Description

targetcli stops parsing a command at a caret "^" character. This makes it impossible to include a password with a caret in it.

Example:

/> set global logfile=foo^bar garbage junk
Parameter logfile is now 'foo'.

In this case, we should get an error that there are extra positional parameters. If we excise "garbage junk", we would expect the parameter "logfile" to be set to "foo^bar". Obviously I don't care about setting the log file to a weird name, but this is the simplest way I could find to reproduce the bug. :)

Single and double quotes around the parameter or parameter name make no difference, nor does escaping the caret character with \ or ^.

/> version
Using configshell version 1.1
Using rtslib version 2.1
Using targetcli version 2.0rc1

Packages versions:
targetcli 2.0rc1-2
python-urwid 1.0.1-2

$ cat /proc/version
Linux version 3.5.0-17-generic (buildd@allspice) (gcc version 4.7.2 (Ubuntu/Lina
ro 4.7.2-2ubuntu1) ) #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.