This issue has been created
There are 2 comments.
 
 
Confluence / cid:jira-generated-image-avatar-27bf4c3a-d67e-4ff9-986f-5b688423cb66 CONFLUENCE-255 Open

Unknown macro confluence_emoticon after migration from newer confluence versions

 
View issue   Β·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f2170b39-8e18-45a9-aee0-879ffac493bb Nikita Petrenko created this issue on 01/Jul/24 16:16
 
Summary: Unknown macro confluence_emoticon after migration from newer confluence versions
Issue Type: cid:jira-generated-image-avatar-27bf4c3a-d67e-4ff9-986f-5b688423cb66 Bug
Affects Versions: 9.49.0
Assignee: Unassigned
Attachments: error after migration.png
Components: Syntax - Confluence
Created: 01/Jul/24 16:16
Environment: Confluence 8.5.6
Priority: cid:jira-generated-image-static-major-8d764372-0f12-456b-85a3-274e77eaf5bb Major
Reporter: Nikita Petrenko
Description:

Seems after the implementation of CONFLUENCE-146 and CONFLUENCE-252. Confluence can't parse the emoticons that are inserted in the newest Confluence version.

 
 

2 comments

 
cid:jira-generated-image-avatar-f2170b39-8e18-45a9-aee0-879ffac493bb Nikita Petrenko on 01/Jul/24 16:23
 

In Confluence 6.x the xml stores emoticons such:

<object class="BodyContent" package="com.atlassian.confluence.core">
    <id name="id">766148614</id>
    <property name="body"><![CDATA[<p>Flag as emoticon: <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":flag_ua:" ac:emoji-id="1f1fa-1f1e6" ac:emoji-fallback="πŸ‡ΊπŸ‡¦" />. More flags: <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":flag_white:" ac:emoji-id="1f3f3" ac:emoji-fallback="🏳️" /> <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":flag_black:" ac:emoji-id="1f3f4" ac:emoji-fallback="🏴" /> <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":checkered_flag:" ac:emoji-id="1f3c1" ac:emoji-fallback="🏁" /> <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":triangular_flag_on_post:" ac:emoji-id="1f6a9" ac:emoji-fallback="🚩" /> </p><p>More emojis <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":v:" ac:emoji-id="270c" ac:emoji-fallback="✌️" /> <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":x:" ac:emoji-id="274c" ac:emoji-fallback="❌" /> </p>

In Confluence 8.5.6

<object class="BodyContent" package="com.atlassian.confluence.core">
    <id name="id">163856</id>
    <property name="body"><![CDATA[<p><ac:emoticon ac:name="victory hand" ac:emoji-id="270c" /> <ac:emoticon ac:name="cross mark" ac:emoji-id="274c" /> <ac:emoticon ac:name="cross" /> </p><p><ac:emoticon ac:name="white flag" ac:emoji-id="1f3f3" /> <ac:emoticon ac:name="black flag" ac:emoji-id="1f3f4" /> <ac:emoticon ac:name="chequered flag" ac:emoji-id="1f3c1" /> <ac:emoticon ac:name="triangular flag" ac:emoji-id="1f6a9" /> </p><p><ac:emoticon ac:name="flag: Ukraine" ac:emoji-id="1f1fa-1f1e6" /> </p><p><br /></p>
 
cid:jira-generated-image-avatar-f2170b39-8e18-45a9-aee0-879ffac493bb Nikita Petrenko on 01/Jul/24 16:25
 
In Confluence 6.x the xml stores emoticons such:


{code:java}
<object class="BodyContent" package="com.atlassian.confluence.core">
    <id name="id">766148614</id>
    <property name="body"><![CDATA[<p>Flag as emoticon: <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":flag_ua:" ac:emoji-id="1f1fa-1f1e6" ac:emoji-fallback="πŸ‡ΊπŸ‡¦" />. More flags: <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":flag_white:" ac:emoji-id="1f3f3" ac:emoji-fallback="🏳️" /> <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":flag_black:" ac:emoji-id="1f3f4" ac:emoji-fallback="🏴" /> <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":checkered_flag:" ac:emoji-id="1f3c1" ac:emoji-fallback="🏁" /> <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":triangular_flag_on_post:" ac:emoji-id="1f6a9" ac:emoji-fallback="🚩" /> </p><p>More emojis <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":v:" ac:emoji-id="270c" ac:emoji-fallback="✌️" /> <ac:emoticon ac:name="blue-star" ac:emoji-shortname=":x:" ac:emoji-id="274c" ac:emoji-fallback="❌" /> </p>
{code}

In Confluence 8.5.6


{code:java}
<object class="BodyContent" package="com.atlassian.confluence.core">
    <id name="id">163856</id>
    <property name="body"><![CDATA[<p><ac:emoticon ac:name="victory hand" ac:emoji-id="270c" /> <ac:emoticon ac:name="cross mark" ac:emoji-id="274c" /> <ac:emoticon ac:name="cross" /> </p><p><ac:emoticon ac:name="white flag" ac:emoji-id="1f3f3" /> <ac:emoticon ac:name="black flag" ac:emoji-id="1f3f4" /> <ac:emoticon ac:name="chequered flag" ac:emoji-id="1f3c1" /> <ac:emoticon ac:name="triangular flag" ac:emoji-id="1f6a9" /> </p><p><ac:emoticon ac:name="flag: Ukraine" ac:emoji-id="1f1fa-1f1e6" /> </p><p><br /></p>
{code}

That is what I have as source code of the page after migration from 8.5.6 (note that cancel icon is recognise after migration)


{code:java}
{{confluence_emoticon ac:name="victory hand" ac:emoji-id="270c"/}} {{confluence_emoticon ac:name="cross mark" ac:emoji-id="274c"/}} ❌️

{{confluence_emoticon ac:name="white flag" ac:emoji-id="1f3f3"/}} {{confluence_emoticon ac:name="black flag" ac:emoji-id="1f3f4"/}} {{confluence_emoticon ac:name="chequered flag" ac:emoji-id="1f3c1"/}} {{confluence_emoticon ac:name="triangular flag" ac:emoji-id="1f6a9"/}}

{{confluence_emoticon ac:name="flag: Ukraine" ac:emoji-id="1f1fa-1f1e6"/}}
{code}