-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.13.7, 8.4.0, 7.13.18, 7.19.11
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
Any Word document signed by the users fails when it is previewed in a
This is reproducible on Data Center: yes
Steps to Reproduce
- Create a new page
- Add as attachment the file : protected_signed_doc_2023-04-27T12%3A51%3A50.911Z.docx

- Edit the page and add a Office Macro using the file attached before.
- Save the page
Expected Results
The file should be previewed.
Actual Results
If com.atlassian.confluence.impl.util.sandbox class is added in DEBUG mode, the below exception is thrown in the atlassian-confluence.log file:
-- referer: https://CONFLUENCE_URL/confluence/display/PD/XWCD-387 | url: /confluence/rest/office/1.0/view | traceId: d83529ac4ca01f8b | userName: admin 2023-04-28 10:18:23,504 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$static$0 worker0: Exception in thread "main" java.lang.RuntimeException: com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. at com.atlassian.plugins.conversion.convert.html.word.WordConverter.convertToHtml(WordConverter.java:53) at com.atlassian.plugins.conversion.sandbox.html.SandboxHtmlConversionTask.apply(SandboxHtmlConversionTask.java:39) at com.atlassian.plugins.conversion.sandbox.html.SandboxHtmlConversionTask.apply(SandboxHtmlConversionTask.java:19) at com.atlassian.confluence.impl.util.sandbox.SandboxServer.run(SandboxServer.java:63) at com.atlassian.confluence.impl.util.sandbox.SandboxServer.main(SandboxServer.java:121) Caused by: com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. at com.aspose.words.FileFormatUtil.zzY(Unknown Source) at com.aspose.words.Document.zzY(Unknown Source) at com.aspose.words.Document.zzZ(Unknown Source) at com.aspose.words.Document.<init>(Unknown Source) at com.aspose.words.Document.<init>(Unknown Source) at com.atlassian.plugins.conversion.convert.html.word.WordConverter.convertToHtml(WordConverter.java:27) ... 4 more Caused by: java.lang.NullPointerException at com.aspose.words.internal.zzU1.zzY(Unknown Source) at com.aspose.words.internal.zzU1.zzZ(Unknown Source) at com.aspose.words.zzYEO.zzZ(Unknown Source) at com.aspose.words.zzYEO.zzZ(Unknown Source) at com.aspose.words.zzYEO.zzZ(Unknown Source) at com.aspose.words.zzYEO.zzZ(Unknown Source) at com.aspose.words.zz26.zzZuF(Unknown Source) at com.aspose.words.zz26.<init>(Unknown Source) at com.aspose.words.zzYZ2.zzKV(Unknown Source) at com.aspose.words.Document.zzY(Unknown Source) ... 8 more
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available