Bug 78875 - file does not return proper mime types
file does not return proper mime types
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: file (Show other bugs)
7.2
i586 Linux
medium Severity medium
: ---
: ---
Assigned To: Radek Vokal
Mike McLean
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2004-08-16 03:57:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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 
1.0.3705)

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:
Always

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-
notes/iana/assignments/media-types/media-types
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.