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

Can't preview .xls file on "Office Excel" macro if the Worksheet Name parameter is specified

      Issue Summary

      If an .xls file is added to the Office Excel macro and the Worksheet Name macro parameter is specified, the macro does not display the expected content and instead displays an error message:

      We can't preview this file. You'll have to download the file to view it.

      This is reproducible on Data Center: (yes) / (no): Yes

      Steps to Reproduce 

      1. Create a page, attach an Excel file (.xls), and then save the page.
      2. Edit the page and insert Office Excel Macro.
      3. While inserting the file, enter the Worksheet Name parameter based on the sheet name of the Excel file, as shown in the screenshot below:
      4. Click the save button and update the page. 

      Expected Results

      The content of the designated sheet should be appropriately displayed on the Confluence page.  

      Actual Results

      Once the page is saved, the macro displays an error message on the Confluence page, as shown below:

      The logs will display the following error message:

      2024-06-26 13:12:55,145 ERROR [http-nio-8090-exec-5 url: /confluence/rest/office/1.0/view; user: admin] [com.benryan.rest.ConverterMacroResource] getContent The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with OOXML (Office Open XML) Documents. You need to call a different part of POI to process this data (eg HSSF instead of XSSF)
       -- referer: https://localhost:8090/confluence/display/TEST/new+xls+file+page | url: /confluence/rest/office/1.0/view | traceId: 75fa95e96ee302a8 | userName: admin 

      Workaround 

      Note: The issue can't be reproduced in 7.19.20.

      As a workaround, we can perform either one of the following steps:

      1. Edit the Excel macro on the page to remove the value of the Worksheet Name parameter.
      2. Convert the file extension from .xls to .xlsx and re-upload the file to the page.

        1. image-2024-06-26-15-04-00-051.png
          41 kB
          Brent Lin
        2. image-2024-06-26-15-11-11-413.png
          18 kB
          Brent Lin
        3. image-2024-06-26-15-14-37-884.png
          18 kB
          Brent Lin

          Form Name

            [CONFSERVER-96032] Can't preview .xls file on "Office Excel" macro if the Worksheet Name parameter is specified

            Hi jponting 

             

            Kan drop mov files here - but my "users" send me it. Fetch it at https://www.mos-eisley.dk/download/attachments/4161541/Screen%20Recording%202024-09-30%20at%2012.10.21.mov?api=v2 (my personal Confluence)

             

            I can add that:

             

            Close Confluence

            Do:

            cd /pack/confluence-data

            rm -rf /pack/confluence-data/bundled-plugins

            rm -rf /pack/confluence-data/plugin-cache/

            rm -rf /pack/confluence-data/plugins-osgi-cache/

            rm -rf /pack/confluence-data/plugins-temp/

            rm -rf /pack/confluence-data/bundled-plugins_language/

            Start Confluence 

             

            Solves the issue.... every time

            Normann P. Nielsen (Netic) added a comment - - edited Hi jponting     Kan drop mov files here - but my "users" send me it. Fetch it at https://www.mos-eisley.dk/download/attachments/4161541/Screen%20Recording%202024-09-30%20at%2012.10.21.mov?api=v2 (my personal Confluence)   I can add that:   Close Confluence Do: cd /pack/confluence-data rm -rf /pack/confluence-data/bundled-plugins rm -rf /pack/confluence-data/plugin-cache/ rm -rf /pack/confluence-data/plugins-osgi-cache/ rm -rf /pack/confluence-data/plugins-temp/ rm -rf /pack/confluence-data/bundled-plugins_language/ Start Confluence    Solves the issue.... every time
            James Ponting made changes -
            Link New: This issue is related to CONFSERVER-96289 [ CONFSERVER-96289 ]

            Hi 0bce4ade8c4f and npn@netic.dk,

            On the back of your feedback we went and tested our fix again. We're unable to replicate the issue you're seeing, so we suspect there's some other issue that looks like this, or some edge situation we're not aware of.

            Can you please reach out to Support and link them this message and provide an example document along with reproduction steps (please don't put it here as this is a public forum anyone can access). We'll look into it from there.

            For now I'll leave this one as fixed until we can assess the cause of the issue.

            Thanks,
            James Ponting
            Engineering Manager - Confluence Data Center

            James Ponting added a comment - Hi 0bce4ade8c4f and npn@netic.dk , On the back of your feedback we went and tested our fix again. We're unable to replicate the issue you're seeing, so we suspect there's some other issue that looks like this, or some edge situation we're not aware of. Can you please reach out to Support and link them this message and provide an example document along with reproduction steps (please don't put it here as this is a public forum anyone can access). We'll look into it from there. For now I'll leave this one as fixed until we can assess the cause of the issue. Thanks, James Ponting Engineering Manager - Confluence Data Center

            f9221957a5e4  - I Agree, my disapointed employees report the same.... 

            Normann P. Nielsen (Netic) added a comment - f9221957a5e4   - I Agree, my disapointed employees report the same.... 

            The problem still occurs in Confluence 8.5.14. It does not seem to be solved yet and the ticket should be reopened.

            Michael Gampe added a comment - The problem still occurs in Confluence 8.5.14. It does not seem to be solved yet and the ticket should be reopened.
            Niraj Bhawnani made changes -
            Labels Original: fireball sec-escape security-escape New: fireball sec-escape
            Niraj Bhawnani made changes -
            Labels Original: fireball security-escape New: fireball sec-escape security-escape
            Edward made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 942243 ]
            Edward made changes -
            Link New: This issue is duplicated by CONFSERVER-97549 [ CONFSERVER-97549 ]

            A fix for this issue is available in Confluence Server and Data Center 8.5.14
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Akshay Rai added a comment - A fix for this issue is available in Confluence Server and Data Center 8.5.14 Upgrade now or check out the Release Notes to see what other issues are resolved.

              a9293dbdc671 Thomas Rogozinski
              9dd52b4ca361 Brent Lin
              Affected customers:
              13 This affects my team
              Watchers:
              19 Start watching this issue

                Created:
                Updated:
                Resolved: