Some connect module names are treated as URLs and cannot use '&' in the name.

XMLWordPrintable

    • Minor
    • Pre-deployment testing
    • S

      Issue Summary

      Some connect module names are treated as URLs and cannot use '&' in the name.
      If we use '&' then the UI shows them as '&amp' (HTML character reference).

      This has been observed with globalPages (both Jira and Confluence) and jiraProjectsPages module.

      Steps to Reproduce

      1. Create a connect app and add affected modules with name containing '&'
            "generalPages": [
              {
                "key": "general-pages",
                "url": "/index.html",
                "name": {
                  "value": "Foo & Bar"
                }
              }
            ],
            "jiraProjectPages": [
              {
                "key": "project-pages",
                "url": "/index.html",
                "name": {
                  "value": "Foo & Bar"
                },
                "weight": 10
              }
            ],
        
      2. Install the app in a site and check the name entry (for globalPages it'd be the top menu bar)

      Expected Results

      The name should show "Foo & Bar"

      Actual Results

      The name is shown as "Foo &amp Bar". This value is returned by apis and not cause by frontend logic.
      For example, with Jira adminPages the API endpoint */rest/navigation/3/global/addons* returns the malformed name

      {
        "id": "$id"
        "name": "Foo &amp Bar",
        "url": "/plugins/servlet/ac/$appkey/general-pages/...",
        "location": "global-navigation-product"
      },
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Nashid Farhad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: