Unable to Save Edits on Confluence Cloud Pages
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Symptoms
Unable to save changes to a Confluence Page after making edits. The following is generated when trying to save the page:
Oops - an error has occurred:
Cause
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
caused by: java.lang.StackOverflowError
at org.owasp.validator.html.scan.AntiSamyDOMScanner.recursiveValidateTag(AntiSamyDOMScanner.java:360)
Stack Trace:[hide]
javax.servlet.ServletException: Servlet execution threw an exception
Diagnosis
This can occur when data has been copied and pasted from other Confluence pages. Check the Storage Format ( > View Storage Format) of the article and check to see if there are excessive <strong>
tags listed; can appear as:
<strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>
Cause
This can occur when data has been copied and pasted from other Confluence pages. There is currently a bug for this issue, located at jira.atlassian.com/browse/CONF-34926.
Workarounds
Workaround 1
- Select all of the text on the page
- De-bold the text and save the page
- Once saved, re-bold the necessary text
Workaround 2
- Copy the page from ... > Copy
- While in edit mode, Select All content, and Cut to clipboard.
- Save page.
- Edit copy of page, and paste all content back in.
- Save page.
- Use this copy now as the original page