Bug 188584

Summary: some pdf files are marked as text/plain
Product: [Fedora] Fedora Reporter: Jiri Cerny <ji.cerny>
Component: shared-mime-infoAssignee: Christopher Aillon <caillon>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: alex, jfrieben
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-29 20:53:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.