Bug 49697 - PDF: LO asks for password opening attached file. Evince does not.
Summary: PDF: LO asks for password opening attached file. Evince does not.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Drawing (show other bugs)
Version: Master old -3.6
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-09 10:53 UTC by Sergey
Modified: 2014-07-31 09:03 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
The file requiring password. (495.27 KB, application/pdf)
2012-05-09 10:53 UTC, Sergey
Details
Password dialog (9.83 KB, image/png)
2012-05-09 10:56 UTC, Sergey
Details

Description Sergey 2012-05-09 10:53:44 UTC
Created attachment 61296 [details]
The file requiring password.

I'm using latest git.

Problem description: 

Steps to reproduce:
1. Open attached file with libreoffice

Current behavior:
1. Open attached file with libreoffice
2. LO asks for password: see attached screenshot-1.png
3. Pressing Cancel successfully opens a file.
4. Entering something says: incorrect password
5. After password entered LO not able to open the file even after Cancel - it says "General IO error"

Expected behavior:
Evince displays the file with no password required, also selecting "Cancel" in LO successfully opens the file. I expect the file to be opened without password.

Also, if the file is indeed protected somehow, i expect LO to provide more information about what is happening.

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151 Safari/535.19
Comment 1 Sergey 2012-05-09 10:56:02 UTC
Created attachment 61297 [details]
Password dialog
Comment 2 Hashem Masoud 2012-09-18 20:30:05 UTC
(In reply to comment #0)
Confirmed here and I couldn't find a duplicate:
Version 3.6.0.4 (Build ID: 932b512) Slackware Linux 13.37
If there is no password assigned, why would the password dialog appear in the first place?
Comment 3 Sergey 2012-09-19 16:16:47 UTC
Could it be write-protected PDF? Then LO in fact is asking for password for write access? Meaning evince does not require any password for read-only access.

Even if this is true, the dialog text is misleading, it says "Enter password to _open_  file:" while in case write-protected file it should say something like "Enter password to open file for modification or press Cancel if you want it open read only".
Comment 4 Robert Roth 2013-01-28 15:26:07 UTC
The password dialog appears because the PDF file is encrypted, pdfinfo says:
Encrypted:      yes (print:yes copy:yes change:no addNotes:no)
Which means printing and copying is enabled without password, changing the PDF or adding notes is forbidden.
Comment 5 Alexandr 2014-07-31 09:03:42 UTC
Reproducible with LibreOffice 4.2.5 and 4.3.0 on debian.

> The password dialog appears because the PDF file is encrypted

Anyway, "General IO error" is not correct behavior.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.