viewxls macro throws ConversionException on certain images embedded in XLS files

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 1

      Summary

      Microsoft Office Excel file viewer macro will break if contains certain image file

      Environment

      • Microsoft excel, (.xlsx)

      Steps to Reproduce

      1. Upload the following test xlsx file provided in this bug report to Confluence

      Expected Results

      All contents including the images are rendered normally

      Actual Results

      Confluence Excel file viewer throws error:

      Error rendering macro 'viewxls' : com.benryan.conversion.ConversionException: java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
      

      The below exception is thrown in the atlassian-confluence.log file:

      2015-10-15 19:44:59,922 WARN [http-nio-15813-exec-4] [xhtml.view.macro.ViewMacroMarshaller] marshalInternal Exception executing macro: viewxls, with message: com.benryan.conversion.ConversionException: java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
       -- referer: <Confluence_base_URL>/pages/editpage.action?pageId=360452 | url: /display/TS/test+space | userName: admin | action: viewpage | page: 360452
      

      Workaround

      Convert the excel file to word file first before uploading to Confluence

            Assignee:
            Unassigned
            Reporter:
            Monique Khairuliana (Inactive)
            Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: