Details
-
Bug
-
Resolution: Fixed
-
Highest
-
73
-
Severity 3 - Minor
-
95
-
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
Attachments
Issue Links
- was cloned as
-
CONFCLOUD-77207 Jira Macro Repair Tool, may not update restricted permission pages
- Closed
-
CONFCLOUD-78324 Failed to parse XHTML content from Jira Macro Repair
- Long Term Backlog
- causes
-
MOVE-1738074 Loading...
-
MOVE-1738226 Loading...
-
MOVE-1738574 Loading...
-
MOVE-1739492 Loading...
-
MOVE-1739547 Loading...
-
MOVE-1740033 Loading...
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...