Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-16221

HTML entities in emails rendered incorrectly by Lotus Notes

    • 0
    • 3
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Hello,

      Customers using Lotus Notes MUA will be affected by the same problem described in JRA-12151: Lotus Notes fails to correctly render HTML emails where entities are specified in numeric hexadecimal rather than named format (ref HTML ISO-8859-1 Reference).

      A similar patch as the one devised for JIRA should be devised for Confluence as well.

      Best Regards,
      Edoardo

        1. Email.java
          21 kB
        2. Email.java
          20 kB

            [CONFSERVER-16221] HTML entities in emails rendered incorrectly by Lotus Notes

            George Varghese added a comment -
            Atlassian Update - 27 March 2025

            Hello,

            Thank you for submitting this suggestion. We appreciate you taking the time to share your ideas for improving our products, as many features and functions come from valued customers such as yourself.

            Atlassian is committed to enhancing the security and compliance of our Data Center products, with an emphasis on sustainable scalability and improving the product experience for both administrators and end-users. We periodically review older suggestions to ensure we're focusing on the most relevant feedback. This suggestion is being closed due to a lack of engagement in the last four years, including no new watchers, votes, or comments. This inactivity suggests a low impact. Therefore, this suggestion is not in consideration for our future roadmap.

            Please note the comments on this thread are not being monitored.

            You can read more about our approach to highly voted suggestions here and how we prioritize what to implement here.

            To learn more about our recent investments in Confluence Data Center, please check our public roadmap and our dashboards, which contain recently resolved issues, current work, and future plans.

            Kind regards,
            Confluence Data Center

            George Varghese added a comment - Atlassian Update - 27 March 2025 Hello, Thank you for submitting this suggestion. We appreciate you taking the time to share your ideas for improving our products, as many features and functions come from valued customers such as yourself. Atlassian is committed to enhancing the security and compliance of our Data Center products, with an emphasis on sustainable scalability and improving the product experience for both administrators and end-users. We periodically review older suggestions to ensure we're focusing on the most relevant feedback. This suggestion is being closed due to a lack of engagement in the last four years , including no new watchers, votes, or comments. This inactivity suggests a low impact. Therefore, this suggestion is not in consideration for our future roadmap. Please note the comments on this thread are not being monitored. You can read more about our approach to highly voted suggestions here and how we prioritize what to implement here. To learn more about our recent investments in Confluence Data Center, please check our public roadmap and our dashboards, which contain recently resolved issues , current work, and future plans. Kind regards, Confluence Data Center

            James Tran added a comment -

            I've upgraded to Confluence 6.0.6 and Lotus Notes 9.0.1.  The same issue still occurs with Confluence 6.0.6.  Are there any plans to provide a fix?

            James Tran added a comment - I've upgraded to Confluence 6.0.6 and Lotus Notes 9.0.1.  The same issue still occurs with Confluence 6.0.6.  Are there any plans to provide a fix?

            We are also facing the same Problem. It is annoying for me and uncomfortable for our users.
            Sure, its just a kind of feeling, but this is not cool.

            May be there is a kind of workaround for this issue?

            Deleted Account (Inactive) added a comment - We are also facing the same Problem. It is annoying for me and uncomfortable for our users. Sure, its just a kind of feeling, but this is not cool. May be there is a kind of workaround for this issue?

            James Tran added a comment -

            Michael, any update on this? We are now on Confluence 5.8.18 and Lotus Notes 9.0.1 and the issue is still present.

            James Tran added a comment - Michael, any update on this? We are now on Confluence 5.8.18 and Lotus Notes 9.0.1 and the issue is still present.

            Stefan Baader added a comment - - edited

            We are using CONF 5.5.7. We had also an incident in the company concerning Lotus Notes mail. The button to reset the password is not shown, only the link back to the forgotpassword.action. So why you don't replace the button by a simple link which is correctly rendered in any case? Would be a pragmatic approach.

            Stefan Baader added a comment - - edited We are using CONF 5.5.7. We had also an incident in the company concerning Lotus Notes mail. The button to reset the password is not shown, only the link back to the forgotpassword.action. So why you don't replace the button by a simple link which is correctly rendered in any case? Would be a pragmatic approach.

            Michael S added a comment -

            At present this is not on our short term roadmap for bug fix. At the moment we're working with the dev team to determine if this still occurs in the latest version (4.3.x), and will prioritise it based on that.

            I'll update this ticket as soon as we have more info.

            Michael S added a comment - At present this is not on our short term roadmap for bug fix. At the moment we're working with the dev team to determine if this still occurs in the latest version (4.3.x), and will prioritise it based on that. I'll update this ticket as soon as we have more info.

            James Tran added a comment -

            Good Morning. I am trying to track this same issue. I have Confluence 3.5.17 installed and we are using Lotus Notes 8.5.2 for email. I have the same issue where HTML notifications are not displaying the email body content.

            Here are my testing scenarios:

            Setting email notifications in my profile to TEXT or HTML.
            -Wiki page updates received with body content displayed with no problems

            Setting email notification in my profile to TEXT or HTML
            -Email notifications received for updates to Team Calendar events does not show the body content in the email.
            -If I forward the email, the body content then shows up in the forwarded email at the bottom where the original email is shown.
            -This problem does not present itself viewing the original notification email from the web based lotus notes client.
            -This issue seems to only affect notifications for Team Calendar events

            I see it mentioned here there is a patch for JIRA. Is there a patch available for Confluence 3.5.17? Thanks!

            James Tran added a comment - Good Morning. I am trying to track this same issue. I have Confluence 3.5.17 installed and we are using Lotus Notes 8.5.2 for email. I have the same issue where HTML notifications are not displaying the email body content. Here are my testing scenarios: Setting email notifications in my profile to TEXT or HTML. -Wiki page updates received with body content displayed with no problems Setting email notification in my profile to TEXT or HTML -Email notifications received for updates to Team Calendar events does not show the body content in the email. -If I forward the email, the body content then shows up in the forwarded email at the bottom where the original email is shown. -This problem does not present itself viewing the original notification email from the web based lotus notes client. -This issue seems to only affect notifications for Team Calendar events I see it mentioned here there is a patch for JIRA. Is there a patch available for Confluence 3.5.17? Thanks!

            Thanks Stefan, but seems like this patch will mess up the Email content if certain character is entered into the Page title: CSP-65951. I have attached the new Email.java that will fix the issue for page titles with apostrophes, but if you do encounter any issue with other characters, you can add the character to the following line of Email.java:

            Pattern p = Pattern.compile("&'#(.*?);"); //Add the character into the REGEX, after the apostrophe character
            

            After that, put an additional entityMap line (Example for apostrophe):

            entityEntityMap.put((short)39,"apos");
            

            Recompile Email.java under ConfluenceSource\confluence\src\java\com\atlassian\confluence\mail

            Do note that this patch is not provided by Atlassian (Therefore, unsupported by Atlassian), attempts to apply it should be done with care, with backups of your original Confluence build, should you run into issues.

            Foo Sim (Inactive) added a comment - Thanks Stefan, but seems like this patch will mess up the Email content if certain character is entered into the Page title: CSP-65951 . I have attached the new Email.java that will fix the issue for page titles with apostrophes, but if you do encounter any issue with other characters, you can add the character to the following line of Email.java: Pattern p = Pattern.compile( "&'#(.*?);" ); //Add the character into the REGEX, after the apostrophe character After that, put an additional entityMap line (Example for apostrophe): entityEntityMap.put(( short )39, "apos" ); Recompile Email.java under ConfluenceSource\confluence\src\java\com\atlassian\confluence\mail Do note that this patch is not provided by Atlassian (Therefore, unsupported by Atlassian), attempts to apply it should be done with care, with backups of your original Confluence build, should you run into issues.

            Adam Dee added a comment -


            Still we are facing the same issue - Atlassian

            Adam Dee added a comment - Still we are facing the same issue - Atlassian

            I just had a closer look: This is actually hidden in a call stack made up of com.opensymphony.webwork.util.VelocityWebWorkUtil.htmlEncode(String) and then com.opensymphony.util.TextUtils.htmlEncode(String).

            If I got Mark right (how they fixed the JIRA issue) they will be fixing this by changing the behaviour of com.opensymphony.util.TextUtils.htmlEncode(String). This approach should work also with Confluence, but there might be other side-effects.

            In the meantime I have migrated the patched Email class (from the JIRA Issue) to Confluence. Tested on Confluence 3.1, but will work on 3.2.1, too (same atlassian-mail version).

            Stefan Kleineikenscheidt (K15t) added a comment - I just had a closer look: This is actually hidden in a call stack made up of com.opensymphony.webwork.util.VelocityWebWorkUtil.htmlEncode(String) and then com.opensymphony.util.TextUtils.htmlEncode(String). If I got Mark right ( how they fixed the JIRA issue ) they will be fixing this by changing the behaviour of com.opensymphony.util.TextUtils.htmlEncode(String). This approach should work also with Confluence, but there might be other side-effects. In the meantime I have migrated the patched Email class (from the JIRA Issue) to Confluence. Tested on Confluence 3.1, but will work on 3.2.1, too (same atlassian-mail version).

              Unassigned Unassigned
              ecausarano Edoardo Causarano [Atlassian]
              Votes:
              18 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: