Bug 142311 - Draw prompts for password when the PDF is encrypted using empty password.
Summary: Draw prompts for password when the PDF is encrypted using empty password.
Status: RESOLVED DUPLICATE of bug 49697
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.1.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-16 04:09 UTC by yury.dubinsky
Modified: 2021-05-17 11:04 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
PDF with encrypted using empty password (6.78 KB, application/pdf)
2021-05-16 04:09 UTC, yury.dubinsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yury.dubinsky 2021-05-16 04:09:25 UTC
Created attachment 172051 [details]
PDF with encrypted using empty password

This issue is related to the bug Bug 49697 ,  but the point of view is different. I have many financial statements that are encrypted using empty password. There are reasons,mostly relevant for Adobe products, for using empty passwords.  I attached a demo PDF encrypted via qpdf. 
 All viewers except Draw, don't prompt for password when the password is null. I tested the following viewers: on Linux (Ubuntu 20.04) with Adobe Reader, Chrome / Chromium, Firefox, Evince, Okular, GIMP, and ImageMagic, and others. On Windows 10 with Adobe Reader, Chrome / Chromium, Firefox and Edge. Even ImageMagic which has problems with decryption silently opens such files.

Steps to reproduce:
1. Open attached file with Draw on Linux and Windows
2. Open attached file with any of above viewers.

Current behaviour:
 1. Draw prompts for password . Also see the attached screenshot. 
 2. Press Cancel or leave the password field empty and press OK. The document will be open
 3. Any of other viewers open the file without a prompt. 

Expected behaviour:
1. Draw should open the file without any prompt like other viewers.
Comment 1 Timur 2021-05-17 11:04:12 UTC
No idea why a different bug would be needed. 
You can write there if needed and if some difference.

*** This bug has been marked as a duplicate of bug 49697 ***