Red Hat Bugzilla – Bug 188584
some pdf files are marked as text/plain
Last modified: 2007-11-30 17:11:30 EST
Description of problem:
On FC5 system with all recent updates some pdf files are given mime type
text/plain (as seen eg. in file properties in Nautilus). From observation, this
problem appears only for PDF files that contain a lot of ASCII characters at
the begining of the file. It has then influence on the right-click-menu entries,
and on applications offered to open the file.
Version-Release number of selected component (if applicable):
1. Save e.g. file at http://ima.epfl.ch/~cerny/bad.pdf on local disk.
2. In nautilus right click on it -> properties
type is Plain text document (modulo translation error from czech)
I can attach the file if necessary, but it is rather big.
Type is application/pdf
Right, this issue has been around for a couple of weeks now, also
on a current "rawhide" system ("shared-mime-info-0.17-2").
Occurs most of the time when a PDF file is opened from within a
web browser ("epiphany" in my case). Once the file is saved to disk,
it can be opened without problem, e.g. with "evince foo.pdf".
Seems to be caused by this upstream bug:
upping the priority of application/pdf to 60 in the /usr/share/mime/magic fixed
this for me. This is probably a dupe of bug #193582.
I had posted a related report for the development tree, see Bug #190858.
The issue is also solved by upgrading "shared-mime-info" to current "CVS",
as I had pointed out in:
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 report should be closed as solved in "ERRATA". The Fedora development
tree still has only the broken package.