Test URLs need to be escaped

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      1. is a character that needs to be escaped in URLs. Similar to JENINS-1768 and JENKINS-2788 we get broken links to test results (both normal links and the inline ajax links) where the part after the # is treated by the browser as the target causing the links to be 404.

      If we fix the URL by replacing the # with the url escaped %23 it works correctly.

      This is a problem to us because it's best practice to use # in test names in Ruby as described in this tutorial: http://eggsonbread.com/2010/03/28/my-rspec-best-practices-and-tips/

      After some digging I found hudson.tasks.test.TestObject.safe(String s) which was modified in the previous bug that now handles "/" "\" and ":", but not #.

      Can provide more details and produce test cases as needed.

      Thanks,
      Morgan

            Assignee:
            Unassigned
            Reporter:
            Morgan Christiansson
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: