Status: Closed (View Workflow)
Platform: Macintosh, OS: All
When viewing "All Tests" and package root, I get URLs that are invalid due to the names of my tests.
(I'm using Hudson to run Ruby tests, the test names are the Ruby name for the test controller -
The URL I see this issue at is: http://hudson.example.com/job/superapp/215/testReport/(root)/
Any test with :: in the name shows up as links like:
The browser misinterprets the SuperApp:: as a protocol in the URL; and sends me to the "page"
"superApp::JiraVerifierTest/test_matching_email" (that's the complete URL). This doesn't work
(obviously). It should have sent me to something like:
It is important to note that this only happens on some pages (listed above); other pages seem to
construct the URL differently (perhaps with a path component first); and thus works for those pages.
Code changed in hudson
User: : mindless
[FIXED JENKINS-1768] Handle unsafe URL characters for package/class names too.
[FIXED JENKINS-2788] Add backslash as URL unsafe charcter (IE auto-replaces \ as /).
Add getSafeName (just does safe(getName())) in TabulatedResult.
Use safe names as keys in maps for PackageResults/ClassResults, and use safe name
when constructing links in jelly and in CaseResult.getRelativePathFrom().
Add \ as character to replace in TestObject.safe().
Working on this.