Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-27077

Javascript and other errors in IE8 with force HTTPS enabled through web.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • High
    • None
    • 4.4.4
    • None

    Description

      Problem

      There are errors rendering dashboard and login page with IE8 (Internet Explorer), if force HTTPS redirect is enabled in web.xml:

      Webpage error details
      
      User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.2)
      Timestamp: Thu, 9 Fev 2012 00:13:37 UTC
      
      Message: 'jQuery' is undefined
      Line: 2
      Char: 1
      Code: 0
      URI: https://test.atlassian.com:8443/s/en_USplxktp/664/2/3.1.12/_/download/batch/com.atlassian.gadgets.dashboard:dashboard/com.atlassian.gadgets.dashboard:dashboard.js
      
      Message: 'AJS' is undefined
      Line: 1
      Char: 1
      Code: 0
      URI: https://test.atlassian.com:8443/s/en_USplxktp/664/2/5.8.4/_/download/batch/com.pyxis.greenhopper.jira:gh-help-analytics/com.pyxis.greenhopper.jira:gh-help-analytics.js
      
      Message: 'AJS' is undefined
      Line: 1
      Char: 1
      Code: 0
      URI: https://test.atlassian.com:8443/s/en_USplxktp/664/2/5.8.4/_/download/batch/com.pyxis.greenhopper.jira:gh-globalkeyboardshortcuts/com.pyxis.greenhopper.jira:gh-globalkeyboardshortcuts.js
      
      Message: 'AJS' is undefined
      Line: 1
      Char: 1
      Code: 0
      URI: https://test.atlassian.com:8443/s/en_USplxktp/664/2/1.0.9/_/download/batch/com.atlassian.plugin.atlassian-feedback-plugin:feedback/com.atlassian.plugin.atlassian-feedback-plugin:feedback.js
      
      Message: Object expected
      Line: 20
      Char: 1
      Code: 0
      URI: https://test.atlassian.com:8443/s/en_USplxktp/664/2/4.4.4/_/download/batch/com.atlassian.jira.jira-admin-quicknav-plugin:admin-quicksearch/com.atlassian.jira.jira-admin-quicknav-plugin:admin-quicksearch.js
      
      Message: 'AJS' is undefined
      Line: 1
      Char: 1
      Code: 0
      URI: https://test.atlassian.com:8443/rest/api/1.0/shortcuts/664/b0de962b38bbe453b6e4930c976ccf6c/shortcuts.js?context=issueaction&context=issuenavigation
      
      Message: 'AJS' is undefined
      Line: 242
      Char: 13
      Code: 0
      URI: https://test.atlassian.com:8443/secure/Dashboard.jspa
      
      Message: 'AG.DashboardManager' is null or not an object
      Line: 274
      Char: 9
      Code: 0
      URI: https://test.atlassian.com:8443/secure/Dashboard.jspa
      

      With this exact code inserted into Jira-install/atlassian-jira/WEB-INF/web.xml:

      	<security-constraint>
      <web-resource-collection>
      <web-resource-name>all-except-attachments</web-resource-name>
      <url-pattern>*.js</url-pattern>
      <url-pattern>*.jsp</url-pattern>
      <url-pattern>*.jspa</url-pattern>
      <url-pattern>*.css</url-pattern>
      <url-pattern>/browse/*</url-pattern>
      </web-resource-collection>
      <user-data-constraint>
      <transport-guarantee>CONFIDENTIAL</transport-guarantee>
      </user-data-constraint>
      </security-constraint>
      

      JIRA Dashboard will load / render Blank

      Workaround

      Simply remove this two lines from the above security:

      <url-pattern>*.js</url-pattern>
      <url-pattern>*.jspa</url-pattern>
      

      This will likely cause the browser to complain about non-security requests inside secure server

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gcheck GuilhermeA
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: