-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Connect - Jira
-
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 '&' (HTML character reference).
This has been observed with globalPages (both Jira and Confluence) and jiraProjectsPages module.
Steps to Reproduce
- 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 } ], - 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 & 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 & 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