Description: Blank password works for a pdf file set with permission password making the applied security useless when opening the pdf file in Libreoffice app. Actual Results: Libreoffice allows to open/edit a protected file using a blank password Expected Results: Blank password definitely should not be allowed to open/edit a password protected pdf file Reproducible: Always User Profile Reset: No Additional Info: Please fix it!
You need to attach PDF. Seems like you report Fileopen problem with PDF that was created in some other app.
Created attachment 179405 [details] sample pdf created in Libreoffice with permission password
When I open the pdf file in LibreOffice it will prompt to key in password, if wrong password it will say wrong and will not continue, if blank or empty password it will let me open/edit the file.
[Automated Action] NeedInfo-To-Unconfirmed
PDF opens without prompting for password in Firefox 99.0 and GNOME Document Viewer 3.36.10. Bug confirmed in LO 7.2.6: prompted for password, asks again if not the right password, but opens if the password field is empty. Same thing if clicking "Cancel". Version: 7.2.6.2 / LibreOffice Community Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754 CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Also confirmed with: Version: 6.4.7.2 Build ID: 1:6.4.7-0ubuntu0.20.04.4 CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3; Locale: en-AU (en_AU.UTF-8); UI-Language: en-US Calc: threaded
pdfinfo for the file: Creator: Writer Producer: LibreOffice 7.2 CreationDate: Fri Apr 8 18:36:02 2022 AEST Tagged: no UserProperties: no Suspects: no Form: none JavaScript: no Pages: 1 Encrypted: yes (print:no copy:no change:no addNotes:no algorithm:RC4) Page size: 595.304 x 841.89 pts (A4) Page rot: 0 File size: 11507 bytes Optimized: no PDF version: 1.6 Very much related to Bug 49697, potentially a duplicate. Chris, can you please give us the password for the file you created? I want to make sure it wasn't an empty password, and would be useful to test further anyway.
Also please explain why not duplicate or mark that is is. Rule of thumb is search in existing bugs before reporting.
(In reply to stragu from comment #6) > pdfinfo for the file: > > Creator: Writer > Producer: LibreOffice 7.2 > CreationDate: Fri Apr 8 18:36:02 2022 AEST > Tagged: no > UserProperties: no > Suspects: no > Form: none > JavaScript: no > Pages: 1 > Encrypted: yes (print:no copy:no change:no addNotes:no algorithm:RC4) > Page size: 595.304 x 841.89 pts (A4) > Page rot: 0 > File size: 11507 bytes > Optimized: no > PDF version: 1.6 > > Very much related to Bug 49697, potentially a duplicate. > > Chris, can you please give us the password for the file you created? I want > to make sure it wasn't an empty password, and would be useful to test > further anyway. Hi, password is 123
It's expected that this PDF opens. As for editing, not a potential but real duplicate. *** This bug has been marked as a duplicate of bug 49697 ***