My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
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
Owner:  pekka.klarck
Closed:  Sep 2010


Sign in to add a comment
 
Reported by spielman...@googlemail.com, Sep 19, 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.
report.html
29.3 KB   View   Download
Sep 20, 2010
Project Member #1 pekka.klarck
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
Project Member #2 pekka.klarck
Fixed with tests by r4079 and r4081.
Owner: pekka.klarck
Sep 20, 2010
Project Member #3 pekka.klarck
(No comment was entered for this change.)
Status: Done
Sign in to add a comment

Powered by Google Project Hosting