-
Bug
-
Resolution: Fixed
-
High
-
5
-
Severity 3 - Minor
-
2
-
Issue Summary
In some instances, when copying and pasting a Jira Filter link into a comment in any Atlassian product or on a page in Confluence, the Link preview will render random Chinese characters instead of the links contents.
This only happens with what I will refer to as "precursor" filter links in this format:
https://your-domain.atlassian.net/issues/?filter=12345
If you paste this URL into a comment on an issue comment or in Confluence, the link preview will render Chinese characters.
If you visit the link above in a web browser it will actually redirect to a URL in this format:
https://your-domain.atlassian.net/browse/PRJ-123?filter=12345
Where PRJ-123 is the issue key of the first issue returned by the filter. Filter links in this format will render normally in Jira issue comments and in Confluence.
This is reproducible on Data Center: No
Steps to Reproduce
So far I have found that there are two ways that users might end up copying the precursor link (before the redirect):
- Jira Menu → Filters → View All Filters
- If you directly copy the filter links from this page and paste them into a comment or confluence page, Chinese characters will be rendered in the link preview.
- Jira Menu → Filters → Under RECENT select any recent filter → Click Filters again → Under RECENT select the same filter again
- This will cause the link in the address bar to change to the precursor link without redirecting. If you copy and past this link into a comment or Confluence page, Chinese characters will be rendered in the link preview.
Expected Results
Both the precursor link and the redirected link should render the filter link preview correctly.
Actual Results
If you copy/paste the precursor link into a comment or Confluence page, the link preview is rendered with random Chinese characters.
Workaround
Workaround 1: (Recommended) Visit the link and copy the redirected link instead
Workaround 2: Extract the filterID from the URL and form your own URL using the following format:
https://your-domain.atlassian.net/browse/PRJ-123?filter=12345
Where PRJ-123 is the issue key of the first issue returned by the filter. Filter links in this format will render normally in Jira issue comments and in Confluence. (This alternative workaround may be useful if you are using the API or a scripting solution and can't or don't want to make additional network requests to get the redirected link).
During my testing, I discovered that any random project and issue key works even if the project or issue key doesn't actually exist as long as this format is used:
/browse/P-n?filter=12345
Where P is any number of upper-case letters and n is any positive integer.