PDF files with no password ask for one anyway

Bug #562588 reported by Chuck Money
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Well...Attached is a PDF file. This file is a case action summary from v2.alacourt.com. (I'm a paralegal, I open tens or even a hundred of these a day.) The PDF files generated by Alacourt open fine in every PDF reader on every system except those based on libpoppler on Ubuntu. Here, they ask me for a password despite there being no password on the file. This seems to happen at random - some files do this, some do not. However, every PDF client using libpoppler has the same issue whenever it does occur, so I believe the issue is not in evince (the default PDF reader and the one I typically use) but rather a bug in the underlying library. There is one reader in the repos that does not use libpoppler that I tried before and it would work, but I don't see it in 10.04. Also, this exact same file will open fine in GIMP, but it's kinda stupid to have to open a document in an image editor just to read it.

If you'd like to test it like I have, open this file an Adobe Acrobat and it will render fine, no password requested. Same with Foxit Reader. Same with Sumatra. Same with Preview on OSX 10.5.8. Same with the PDF reader on my Android phone. There is no password on this file, and as such, no other reader asks for one, but for whatever unknown reason, anything based on libpoppler does.

Usually when this happens (on roughly half the files generated by alacourt, as well as one other site I visited once, I forget where) I just open it in Foxit via WINE, but not only am I getting sick and tired of that, I've also just "upgraded" from a 320GB HDD to a 16GB SSD (data is still on a USB HDD), so installing 100MB worth of WINE and Foxit is really, really undesirable right now.

I'm doing this in 10.04, however the same bug manifests itself on the same files in 9.10 and 9.04 as well. My hardware is an Intel Core 2 Duo at 2.0GHz, 4GB DDR2, 16GB SSD, GeForce 9650m, don't even know the rest. I am running 64-bit, but I can also recreate the same issue in a fresh install of 9.10/9.04/10.04 32-bit on both real hardware and in a VirtualBox VM, so I am 100% certain this is NOT an issue related to my hardware. I will try any fix anyone suggests unless it is related to my hardware, that is just not the problem. I have partimage and have backed up the whole system so I would be willing to try a reinstall if necessary however I just installed this 9 days ago (a fresh install after formatting from 9.10) and the problem existed out of the box (as well as in 9.10), so I don't see how that will help.

Thoughts?

(Also, FYI, this is a case action summary and it is thus public record, so before anyone starts moaning about privilege to a certified paralegal as though I'm not already aware, it's fine. Not trying to be a preemptive prick, but I had 3 people on a forum reply to me a year ago about this the first time I tried to fix it in 9.04, and all any of them could do is try to educate ME about MY job rather than offer me any actual technical help.)

Revision history for this message
Chuck Money (chuckdmoney) wrote :
Revision history for this message
Chuck Money (chuckdmoney) wrote :

Not to sound impatient but is anyone working on this?

Revision history for this message
Chuck Money (chuckdmoney) wrote :

Also, I had an unrelated boot error, so I recently reinstalled 10.04, this time beta 2. The bug still occurs the exact same way as often and as random.

I suppose I am going to grab a copy of poppler source and see if maybe I can just disable all the code for password protected files. I mean, I never open any PDF that actually has a password set anyway, and if I wanted to, I can just use pdfcrack, so frankly, I don't think I'll ever need that functionality anyhow. Of course, since the file doesn't really have a password set, it probably still won't open, but maybe this will shed some light on what the root of the problem is.

Revision history for this message
mexlinux (mcanedo) wrote :

I have the same problem 10.04
I'm using google docs as a workarouond at the moment.

Revision history for this message
Chuck Money (chuckdmoney) wrote :

Glad to see someone else has the same problem, maybe someone can at least flag it confirmed so people will look at it???

FYI I've recently discovered that the same PDF files, when opened in Preview on OSX, still open without a password, however, if you attempt to save the file (via File > Save) it will THEN ask you for a password. I believe the issue is that poppler is just misinterpreting the permissions flags on PDF files, and sees a "do not save" flag as a "do not even open" flag.

So...can we confirm this and start actually working on it yet?

In the mean time, I'm going to attempt to recompile Poppler without password or DRM support (this is open source, it shouldn't have it anyway) and see if maybe I can open these files then.

Revision history for this message
Chuck Money (chuckdmoney) wrote :

FYI I just reinstalled poppler, bug still occurs exactly as it did with the file I attached at first, so it clearly still isn't fixed.

Some extensive googling has revealed that evince added support for DRM in pdf files previously, and after a big stink in 2005, it was removed. Looking in gconf-editor, I noticed the override_restrictions value under apps > evince, and it is enabled. Since clearly evince does not support DRM, or at the least, is currently set to ignore it, I am starting to think maybe evince is misinterpreting the DRM as a password. However, when disabling the option in gconf-editor, the problem continues unabated.

I cannot believe the developers are busying themselves with making embedded images render faster when such basic functionality as being able to open the file in the first place is being ignored! Someone PLEASE mark this confirmed so the devs will at least start working on it!

Revision history for this message
In , Pedro Villavicencio (pedro) wrote :

this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/poppler/+bug/562588

everytime you open the pdf linked in the report, you're asked for a password although there's no password on the pdf file, it works fine on acroread.

pdf is here:

http://launchpadlibrarian.net/44082951/Dickey%20CAS.pdf

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Update to poppler 0.14.0

Revision history for this message
Pedro Villavicencio (pedro) wrote :

same behavior on Lucid, will send upstream.

Changed in poppler (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:
 https://bugs.freedesktop.org/show_bug.cgi?id=28589

Changed in poppler (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Pedro Villavicencio (pedro) wrote :

upstream said this is fixed on poppler 0.14.0

Changed in poppler (Ubuntu):
status: Triaged → Fix Committed
Changed in poppler:
importance: Unknown → Medium
status: Unknown → Fix Released
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is fixed in the current ubuntu versions

Changed in poppler (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is fixed in the current ubuntu version

Revision history for this message
Martin Wildam (mwildam) wrote :

Will there be a backport of this fix to 10.04?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.