Comment #2 on issue 1657 by thund...@gmail.com: "Source:" URL created as a 404 link in log file when not using $CWD
http://code.google.com/p/robotframework/issues/detail?id=1657

Here's the command to easily reproduce this problem using the standard Web Demo.

I'm running on OSX, so I have the web service running for my username, thus after completion the log file will be available at http://127.0.0.1/~username/logs/log.html.

  $ pwd
  /Users/username/webdemo
$ pybot -o /Users/username/Sites/logs/output.xml -d /Users/username/Sites/logs/ -l /Users/username/Sites/logs/log.html login_tests

or for a smaller command line
   $ pwd
   /Users/username/webdemo
   $ pybot -d /Users/username/Sites/logs/ login_tests

The log file thus created will contain a URL which is invalid for anything other than local private access for only that user, and which cannot be made to work even with outside copying of the source file to the requested log directory.

The tool provides a invalid relative URL: The requested log destination directory was /Users/username/Sites/logs/, $CWD was /Users/username/webdemo/, the logs are available at http://127.0.0.1/~username/logs/log.html, and yet the "Source:" link attempts to serve http://127.0.0.1/webdemo/login_tests. Even if it had correctly copied the output data to the requested log dir, the URL would still be invalid as it improperly strips some of the path information from the location - note the URL points to "/webdemo/login_tests" as if I was running from the root of the filesystem, even though a correctly formatted relative-to-the-log-dir URL would not be formatted thusly.

So, should RobotFramework not create a href for that Source link, or should it be copying the source file to the requested directory? Either way, the relative URL code for this link is broken and makes a very bad assumption about the availability and location of the source file.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to