Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-2212

Greenhopper JavaScript sets browser title incorrectly for ampersand '&'

      Greenhopper tries to display our project name, "Ticker & NLE", in the browser's title bar when on the Agile pages. But, the name is escaped so that it displays incorrectly. From the page source:

      <script type="text/javascript">
      document.title = "Ticker &amp; NLE - Chart Board - Vizrt JIRA";
      </script>
      

      This results in the text "Ticker & NLE" in the title. If I change the code to the following, it displays correctly:

      <script type="text/javascript">
      document.title = "Ticker & NLE - Chart Board - Vizrt JIRA";
      </script>
      

      Reproduction steps:

      1. Create a project named "This & That".
      2. Enable the project in Greenhopper.
      3. Open project in Greenhopper's Agile view.

      Expected behaviour: Browser tab displays "This & That - Task Board [...]".

      Actual behaviour: Browser tab displays "This & That - Task Board [...]".

      In Chrome and Firefox.

            [JSWSERVER-2212] Greenhopper JavaScript sets browser title incorrectly for ampersand '&'

            Fixed in version 5.3

            Michael Ruflin (Inactive) added a comment - Fixed in version 5.3

            Reopening as this is occurring on 5.2.3-SNAPSHOT.

            Nicholas Muldoon [Atlassian] added a comment - Reopening as this is occurring on 5.2.3-SNAPSHOT.

            Hi,

            Can anyone help me on this?
            Thx
            luis

            Luis Ribeiro added a comment - Hi, Can anyone help me on this? Thx luis

            Hello,

            I have installed greenhopper 5.2.2.
            For all my project's which contains "&" in its name it is setting "&amp".
            I would say its not interpreting as html but as a string literal...
            Thx,
            Luís

            Luis Ribeiro added a comment - Hello, I have installed greenhopper 5.2.2. For all my project's which contains "&" in its name it is setting "&amp". I would say its not interpreting as html but as a string literal... Thx, Luís

            Note: Missing HTML-encoding makes the description display incorrectly.

            The Actual behaviour should be: Browser tab displays "This &amp; That - Task Board [...]".

            Helge S. Holm added a comment - Note: Missing HTML-encoding makes the description display incorrectly. The Actual behaviour should be: Browser tab displays "This &amp; That - Task Board [...] ".

              jchuet JC
              mychin Min Yee Chin [Atlassian]
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: