Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13540

Redirects do not work properly on IE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • core
    • Internet Explorer

      TL;DR: Make the 404 redirect page longer so IE behaves, or change how redirects work.

      Let's say you have a build with no test reports (eg, a cancelled build). Try to enter the testReport page:

      http://jenkins:8080/job/MyProject/1325/testReport/

      Jenkins will perform a 302 Found redirect to

      http://jenkins:8080/job/MyProject/1325/testReport/?

      This will load a 404 page with the following contents:

      <html><head><meta http-equiv='refresh' content='1;url=..'/><script>window.location.replace('..');</script></head><body style='background-color:white; color:white;'>Not found</body></html>

      On Chrome and Firefox this will redirect to http://jenkins:8080/job/MyProject/1325 which is probably what you expected. IE will not. It will instead redirect to its own internal 404 page.

      I think this page purports to tell why this happens. It says that the page needs to be 512 bytes or it's ignored:

      http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml

      The upshot is that it would be good if either both redirects used a 302 Found, or perhaps a simpler solution would be if the 404 meta-redirect had more content so that Explorer took it seriously.

            Unassigned Unassigned
            jdmarshall Jason Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: