-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 6.14.3, 7.0.3, 7.1.0
-
Component/s: Macros - Other Macros
-
None
-
5
-
Severity 3 - Minor
-
0
Issue Summary
Adding a secured .pdf file into Confluence fails with "There was a problem converting this attachment".
Changing .PDF to .pdf didn't solve the issue.
Steps to Reproduce
- Install Confluence 7.0.3
- Create a page
- Add a secured .pdf attachment to the page
- Use PDF Macro to display .pdf file
- Save page
Expected Results
PDF Macro is able to display PDF file or display a message that PDF file is secured
Actual Results
PDF Macro is unable to display PDF file with the following error
There was a problem converting this attachment.
The below exception is thrown in the atlassian-confluence.log file:
2019-11-21 20:49:53,962 ERROR [DefaultSlideCacheManager:thread-2] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting ezypay_puven_may 2019.pdf -- referer: http://localhost:8090/display/703/PDF?src=contextnavpagetreemode | url: /plugins/servlet/pptslide | traceId: 23076f438dfa8f01 | userName: admin java.io.IOException: com.sun.pdfview.decrypt.PDFAuthenticationFailureException: Password failed authentication for both owner and user password at com.benryan.conversion.PdfSlideConversionBatchTask.convertFile(PdfSlideConversionBatchTask.java:56) at com.benryan.conversion.PdfSlideConversionBatchTask.convertFile(PdfSlideConversionBatchTask.java:23) at com.benryan.conversion.AbstractSlideConversionTask.call(AbstractSlideConversionTask.java:40) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: com.sun.pdfview.decrypt.PDFAuthenticationFailureException: Password failed authentication for both owner and user password at com.sun.pdfview.decrypt.StandardDecrypter.<init>(StandardDecrypter.java:188) at com.sun.pdfview.decrypt.PDFDecrypterFactory.createStandardDecrypter(PDFDecrypterFactory.java:316) at com.sun.pdfview.decrypt.PDFDecrypterFactory.createDecryptor(PDFDecrypterFactory.java:99) at com.sun.pdfview.PDFFile.readTrailer15(PDFFile.java:1248) at com.sun.pdfview.PDFFile.readTrailer(PDFFile.java:1002) at com.sun.pdfview.PDFFile.parseFile(PDFFile.java:1378) at com.sun.pdfview.PDFFile.<init>(PDFFile.java:126) at com.sun.pdfview.PDFFile.<init>(PDFFile.java:102) at com.atlassian.confluence.plugins.conversion.convert.image.PdfConverter.getInputPdfFile(PdfConverter.java:166) at com.atlassian.confluence.plugins.conversion.convert.image.PdfConverter.convert(PdfConverter.java:67) at com.benryan.conversion.PdfSlideConversionBatchTask.convertFile(PdfSlideConversionBatchTask.java:49) ... 6 more
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available