Bug 143314 - FILEOPEN LibreOffice draw asks for PDF password, but PDF is not protected by password
Summary: FILEOPEN LibreOffice draw asks for PDF password, but PDF is not protected by ...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-12 12:56 UTC by maxela5435
Modified: 2021-07-19 13:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maxela5435 2021-07-12 12:56:34 UTC
Description:
False positive on PDF password prompt

Steps to Reproduce:
1. Open a large PDF File
2. It prompts a password but It doesn't have
3. You click OK and the PDF starts loading acording to bug: 143313

Actual Results:
PDF loads acording to bug 143313

Expected Results:
No password prompt


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: threaded
Comment 1 Kevin Suo 2021-07-15 01:10:45 UTC
Please provide a test PDF from which we can reproduce this issue. If the file is too large, then send me via email so that I can investigate.
Comment 2 maxela5435 2021-07-17 11:52:57 UTC
Please, reed comment three in bug #143313
Comment 3 QA Administrators 2021-07-18 03:30:21 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2021-07-18 14:56:17 UTC
Back to needinfo as this is useless without the PDF
Comment 5 Timur 2021-07-19 08:55:02 UTC
May be a duplicate of bug 49697 for not large PDF but restricted one.

maxela5435, please minimize comments and bug reports, search before reporting and see https://wiki.documentfoundation.org/BugReport.
Comment 6 Kevin Suo 2021-07-19 13:02:52 UTC
Just for those who are interested, the checking of encryption is handled by xpdf_ImportFromFile() in
https://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/wrapper/wrapper.cxx?r=cffd9719#884

and then the checkEncryption() in
https://opengok.libreoffice.org/xref/core/sdext/source/pdfimport/wrapper/wrapper.cxx?r=cffd9719#777