Bug 78875 - file does not return proper mime types
file does not return proper mime types
Product: Red Hat Linux
Classification: Retired
Component: file (Show other bugs)
i586 Linux
medium Severity medium
: ---
: ---
Assigned To: Radek Vokal
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2002-12-02 12:16 EST by Need Real Name
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-08-16 03:57:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-12-02 12:16:16 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 

Description of problem:
Running "file -i" does not always return a valid MIME type. In my case I tested 
a pdf file and expected a return value of "application/pdf", but got "PDF 
document". When asking 'file' for MIME output the default magic file 
is "/usr/share/magic.mime". Investigating this file shows that one would get 
non-MIME strings in many other cases.

Version-Release number of selected component (if applicable): file-3.35-2

How reproducible:

Steps to Reproduce:
1. execute 'file -i my_pdf_file.pdf'

Actual Results:  file: Using regular magic file `/usr/share/magic.mime'
my_pdf_file.pdf: PDF document

Expected Results:  file: Using regular magic file `/usr/share/magic.mime'
my_pdf_file.pdf: application/pdf

Additional info:

Mime types may be found here: http://www.isi.edu/in-
Comment 1 Radek Vokal 2004-08-16 03:57:20 EDT
fixed in file-4.10-1

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