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

Big dimension of image file crashes Confluence when we tries to export the page to PDF.

    XMLWordPrintable

Details

    Description

      Confluence produces a stacktrace error com.atlassian.confluence.importexport.ImportExportException when we display a big png dimension image with align parameter. In order to reproduce the problem, please go through the following steps:

      1. Create a page containing the following:
        h1. !RAP-Configuration-ERM.png|align=center!
        
      2. Save it
      3. Export the page to PDF.

      If you, either remove align=center or h1, the export function will be working fine. The following is the stacktrace that happens after exporting the page to PDF.

       com.atlassian.confluence.importexport.ImportExportException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'exportWikiToXslFo' in class com.atlassian.confluence.importexport.impl.WikiExporter threw exception com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database' @ com/atlassian/confluence/pages/Page.pdfexport.vm[20,37]
          at com.atlassian.confluence.importexport.impl.PdfExporter.generateXslFo(PdfExporter.java:165)
      
      caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'exportWikiToXslFo' in class com.atlassian.confluence.importexport.impl.WikiExporter threw exception com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database' @ com/atlassian/confluence/pages/Page.pdfexport.vm[20,37]
          at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
      
      caused by: com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database'
          at com.atlassian.confluence.importexport.impl.WikiExporter.exportWikiToXslFo(WikiExporter.java:106)
      
      caused by: com.atlassian.confluence.renderer.WikiRenderException: Can not transform XHTML to XSL-FO due to an error in the following XHTML null
          at com.atlassian.confluence.importexport.impl.WikiExporter.convertXHtmlToXslFo(WikiExporter.java:205)
      
      caused by: java.lang.NullPointerException
          at org.dom4j.io.DOMReader.read(DOMReader.java:86) 
      

      Please note that I have tried the problem using images which type png, jpeg and bmp. Using those types, the problem are reproducible.

      Attachments

        1. my-test.JPG
          my-test.JPG
          338 kB
        2. RAP-Configuration-ERM.png
          RAP-Configuration-ERM.png
          14 kB

        Activity

          People

            Unassigned Unassigned
            amurdianto Arie Murdianto
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: