Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-77162

User generated XHTML cannot be parsed or saved from Jira Macro Repair

    XMLWordPrintable

Details

    Description

      Issue Summary

      When updating pages to fix broken macros (such as in Jira Macro Repair), user generated content needs to be parsed, updated, and then saved. Due to errors in the format of the XHTML, it's possible some pages cannot be parsed or saved, causing the content fixing to fail. 

       

      This is reproducible on Data Center: with suitable samples of XHTML

      Steps to Reproduce

      N/A

      Expected Results

      Pages should be able to be parsed and saved. 

      Actual Results

      Some pages fail when being parsed or being updated. 

       
      Troubleshooting

      #1

      When parsing fails, this log entry is logged from Jira Macro Repair: 

      Failed to parse content on page

      or

      Error in correctAppLink: 

       

      When updating fails, this log entry is returned from Jira Macro Repair 

      Error saving macros on page

      The contentId of the affected page is stored in ext.contentId in Splunk. 

       

      #2
      Use these steps to find these failed update entries

      • First run this Splunk query with the cloud ID of the tenant:

      "<cloudId>" `connie-prod` "ValidatorMessageRunner"

      • Use the trace ID from one of the logs (ext.traceId) with the following Splunk query:

       "<traceId>" `connie-prod` level=ERROR | stats count by message

      • There can be several traceId values to work through

       

      The error stack trace exception will show

      com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (Cannot invoke "String.equals(Object)" because the return value of "com.atlassian.confluence.plugins.validator.models.AppLinkMetaData.getServer()" is null)

       

      Workaround

      Manually fix those pages using the steps detailed in this KB

      https://hello.atlassian.net/wiki/spaces/MCENTRAL/pages/1039987637/Fix+Jira+macros+on+Confluence+pages+after+server-to-cloud+migration

      Attachments

        Issue Links

          Activity

            People

              e6bc396e3d4e Ryan Szczecinski
              e70bec655512 Mark Tunmer
              Votes:
              1 Vote for this issue
              Watchers:
              33 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: