Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-11184

Code macro breaks PDF export

    XMLWordPrintable

Details

    Description

      This error occurs when exporting to PDF. The page contains the Code macro that has spaces between text and quote marks.

      The following steps use to reproduce the problem:

      1. Create a page (named Page A)
      2. Paste the following Code macro in Page A:
        {code}
        "     Integer"
        {code}
        
      3. Try to export page A via Info > PDF.

      You should be able to see the similar error exception in the stack trace:

       Cause:
      com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF!
       at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:137)
      caused by: javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException: -1
       at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:61)
      caused by: java.lang.ArrayIndexOutOfBoundsException: -1
       at java.util.ArrayList.get(ArrayList.java:323)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            cltham Choy Li Tham [Atlassian]
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: