Bug 188584 - some pdf files are marked as text/plain
Summary: some pdf files are marked as text/plain
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: shared-mime-info
Version: 5
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christopher Aillon
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-11 14:40 UTC by Jiri Cerny
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-06-29 20:53:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 6577 0 None None None Never

Description Jiri Cerny 2006-04-11 14:40:44 UTC
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):
shared-mime-info-0.17-1.fc5.1
gnome-vfs2-2.14.0-2

How reproducible:
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.   

Expected results:
Type is application/pdf

Comment 1 Joachim Frieben 2006-04-12 20:54:54 UTC
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".

Comment 2 Alex Lancaster 2006-06-23 08:00:24 UTC
Seems to be caused by this upstream bug: 

https://bugs.freedesktop.org/show_bug.cgi?id=6577

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.

Comment 3 Joachim Frieben 2006-06-23 12:04:02 UTC
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:

  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=190858#c6

Comment 4 Alex Lancaster 2006-06-29 15:56:24 UTC
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.

Comment 5 Joachim Frieben 2006-06-29 17:21:40 UTC
This report should be closed as solved in "ERRATA". The Fedora development
tree still has only the broken package.


Note You need to log in before you can comment on or make changes to this bug.