Problem

      Office Excel (view-xls) macro does not load and its corresponding thread gets stuck if the file contains formulas. Example:

      =COUNTIF(Section,"Person4")+H1
      

      Steps to Reproduce

      1. Attach the file Test.xls to a page
      2. Add the Office Excel macro and select that file
      3. Save the page

      Expected Results

      The page and the macro render as expected.

      Actual Results

      The page does not load anymore and the thread gets stuck infinitely. Only restarting the application will clear up that thread.

      Workaround

      The file Test-noformulas.xls is the same but the "COUNTIF" formulas were removed. The bug cannot be reproduced with that file. So, the options are:

      1. Edit the file and remove those formulas
      2. Or, use the File Preview macro instead of the Office Excel one

      Notes

      Example of hanging thread:

      at com.aspose.cells.zaaj.c
      at com.aspose.cells.Workbook.calculateFormula
      

      This can result in full unresponsiveness of the instance if the page is visited the same number of times that is defined in maxThreads (48 by default) since they all will get stuck in this operation. Only restarting will clear them up.

      It also affects Data Center because the Office Excel macro is not covered by the file conversion sandboxing due to this bug:

        1. CONFSERV-60132.mp4
          10.79 MB
        2. 60132.mp4
          24.95 MB
        3. Test-noformulas.xls
          39 kB
        4. Test.xls
          67 kB

          Form Name

            [CONFSERVER-60132] Office Excel thread hangs if xls file contains formulas

            Bernardo Andreeti made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 711919 ]
            Viacheslav Yushchenko (Inactive) made changes -
            Fix Version/s New: 7.11.0 [ 93893 ]
            QA Demo Status Original: Not Done [ 14330 ] New: Not Needed [ 14332 ]
            QA Kickoff Status Original: Not Done [ 14234 ] New: Not Needed [ 14236 ]
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Closed [ 6 ]
            Viacheslav Yushchenko (Inactive) made changes -
            Attachment New: CONFSERV-60132.mp4 [ 416588 ]
            Viacheslav Yushchenko (Inactive) made changes -
            Attachment New: 60132.mp4 [ 415796 ]
            Viacheslav Yushchenko (Inactive) made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            mpanteleiev (Inactive) made changes -
            Assignee New: Viacheslav Yushchenko [ 568965d94e93 ]
            mpanteleiev (Inactive) made changes -
            Link New: This issue was cloned as CONFSERVER-77303 [ CONFSERVER-77303 ]
            SET Analytics Bot made changes -
            UIS Original: 3 New: 2
            George Lipatov made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 572038 ]
            SET Analytics Bot made changes -
            UIS Original: 6 New: 3

              568965d94e93 Viacheslav Yushchenko (Inactive)
              bandreeti Bernardo Andreeti
              Affected customers:
              2 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: