-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.8.1
-
Component/s: Issue - View Issue
-
None
-
7.08
-
2
-
Severity 3 - Minor
Summary
If we create stories with emojis in the title this works without issues. But changes to issue titles with emojis show bad encoding in activity stream.
Thus, as you can see the problem is with how the activity stream code tries to escape the UTF-8 emoji along with other HTML tags when sending the response to the browser, to render the payload html.
When the text is used as part of an object definition or even as a part of a URL anchor string, it is not escaped and thus displays correctly.
I guess we need to raise this a bug.
Environment
Instance is running Jira 7.8.1
Steps to Reproduce
- Add emojis to an issue header.
- Display on Activity Stream gadget to make sure emojis display correctly.
- Edit the issue header (e.g. Add some text to it)
- Emojis should still be displayed.
- Note the difference in between both, one of them has a <Summary> tag and can be displayed with no problem, against the other that cannot be properly displayed, it's all introduced on a <Title>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:atlassian="http://streams.atlassian.com/syndication/general/1.0"> <id>http://localhost:1730/jira730/activity?maxResults=1&os_authType=basic</id> <link href="http://localhost:1730/jira730/activity?maxResults=1&os_authType=basic" rel="self" /> <title type="text">Activity Streams</title> <atlassian:timezone-offset>+0200</atlassian:timezone-offset> <updated>2018-05-07T14:39:30.575Z</updated> <entry xmlns:activity="http://activitystrea.ms/spec/1.0/"> <id>urn:uuid:ed63b898-4506-381b-a77a-0787c8ae1855</id> <title type="html"><a href="/jira730/secure/ViewProfile.jspa?name=admin" class="activity-item-user activity-item-author">Admin User [Local]</a> changed the Summary of <a href="/jira730/browse/BILE-81">BILE-81</a> to '&#55357;&#56613; &#55357;&#56613; Important important Adding some text &#55357;&#56613; &#55357;&#56613;'</title> <author xmlns:usr="http://streams.atlassian.com/syndication/username/1.0"> <name>Admin User [Local]</name> <email>admin@example.com</email> <uri>/jira730/secure/ViewProfile.jspa?name=admin</uri> <link xmlns:media="http://purl.org/syndication/atommedia" rel="photo" href="http://localhost:1730/jira730/secure/useravatar?avatarId=10122&s=16" media:height="16" media:width="16" /> <link xmlns:media="http://purl.org/syndication/atommedia" rel="photo" href="http://localhost:1730/jira730/secure/useravatar?avatarId=10122&s=48" media:height="48" media:width="48" /> <usr:username>admin</usr:username> <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type> </author> <published>2018-05-07T14:06:32.647Z</published> <updated>2018-05-07T14:06:32.647Z</updated> <link href="http://localhost:1730/jira730/secure/viewavatar?size=xsmall&avatarId=10303&avatarType=issuetype" rel="http://streams.atlassian.com/syndication/icon" title="Bug" /> <link href="http://localhost:1730/jira730/s/jw2r1v/73011/b6b48b2829824b869586ac216d119363/1.0/_/download/resources/jira.webresources:global-static/wiki-renderer.css" rel="http://streams.atlassian.com/syndication/css" /> <link href="http://localhost:1730/jira730/plugins/servlet/streamscomments/issues/BILE-81" rel="http://streams.atlassian.com/syndication/reply-to" /> <generator uri="/jira730" /> <atlassian:application>com.atlassian.jira</atlassian:application> <activity:verb>http://activitystrea.ms/schema/1.0/update</activity:verb> <activity:object> <id>urn:uuid:ff7a814c-3786-3e1e-8441-1168eeec0216</id> <title type="text">BILE-81</title> <summary type="text">π₯ π₯ Important important Adding some text π₯ π₯</summary> <activity:object-type>http://streams.atlassian.com/syndication/types/issue</activity:object-type> </activity:object> <atlassian:timezone-offset>+0200</atlassian:timezone-offset> </entry> </feed>
Expected Results
Emojis should still be displayed.
Actual Results
Emojis are displayed in question marks, as if it fails to display them.
Workaround
No workaround