Search Search within:  All issues  Open issues  New issues  Issues to verify for
 Issue 663: Metadata given from command line is not escaped 1 person starred this issue and may be notified of changes. Back to list
Status: Done pekka.klarck Sep 2010

Run a simple test with a full path to the python interpreter on windows, like:

C:\Users\rsp\Desktop\Robot\Python27\python.exe

and you will see in the report:

C:Users
spDesktopRobotPython27python.exe

Note that not only the backslashes are gone and there is a funny linebreak, but also the directory "rsp" has lost the "r" >:(

see the attached example report for details.

Sep 20, 2010
It seems that the metadata given from the command line is not escaped. Can be easily demonstrated e.g with pybot --metadata path:c:\temp\bar tests.txt and ought to be easy to fix too.

The reason that a newline was added and r removed in the original example is that \r is the escape code for the carriage return. Try having \t or \n in the value and you'll get similar effects.

Summary: Metadata given from command line is not escaped
Status: Accepted
Owner: ---
Labels: -OS-Windows -Interpreter-Python Target-2.5.4
Sep 20, 2010
Fixed with tests by r4079 and r4081.

Owner: pekka.klarck
Sep 20, 2010
(No comment was entered for this change.)

Status: Done