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

ServletException while saving pages with corrupt formatting

    XMLWordPrintable

Details

    Description

      Error

      When saving a page, the following error occurs:

      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:

      Often occurs when data has been copied and pasted from other Confluence pages. To check Click Tools > View Storage Format on the trouble page. Here you will likely see some tags that had not been closed, such 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>

      Workaround:

      1. Copy the page from Tools > Copy
      2. While in edit mode, Select All content, and Cut to clipboard.
      3. Save page.
      4. Edit copy of page, and paste all content back in.
      5. Save page.
      6. Use this copy now as the original page.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              smackie@atlassian.com Shannon S
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: