Red Hat Bugzilla – Bug 186241
Error when clicking on linked PDF in firefox
Last modified: 2007-11-30 17:11:27 EST
Description of problem:
When I click on a PDF file/link in firefox it tries to display it via
mozplugger/evince, but I get the error message "Unable to open document --
Unhandled MIME type: 'application/octet-stream'"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Click on linked PDF in firefox
Evince window gets drawn inside firefox, but I get the error message as
PDF gets displayed
When I subsequently issue "evince http://webserver/path/to/doc.pdf", the
document gets downloaded and displayed fine.
This bug reproduces on my AMD-64 but not on my 32-bit laptop.
NB: I have this problem both on my 32-bit Intel Pentium M laptop and 32-bit AMD
Confirming on my 32-bit Intel laptop. This also affects all other browsers I've
tried: galeon and epiphany both give the same error.
I can duplicate this outside firefox/galeon/epiphany. The underlying problem
appears to be that evince apparently isn't using file magic to check that it's
really a PDF. i.e. if the PDF doesn't have the .pdf extension when downloaded
via mozplugger it is seen as the default binary type:
$ cp doc.pdf /tmp/doc
$ evince /tmp/doc
get same problem as doing it via a browser.
See also discussion here:
This looks to be a duplicate/special case of bug #193582.
Can this be closed as a duplicate of bug #193582? shared-mime-info-0.17-1.fc5.2
has been pushed for fc5 which fixes this.
*** This bug has been marked as a duplicate of 193582 ***