Unable to save edits on Confluence Cloud pages
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
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 CONFCLOUD-54147 - ServletException while saving pages with corrupt formatting
Solution
Workaround 1
Select all of the text on the page
Remove all bold text from the page and save
Once saved, make the necessary text bold again - save the page
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
Was this helpful?