Bug 979061

Summary: magic.mime contains invalid line
Product: Red Hat Enterprise Linux 5 Reporter: Dominik Pospisil <dpospisi>
Component: fileAssignee: Jan Kaluža <jkaluza>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.9CC: dpospisi
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-28 07:16:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dominik Pospisil 2013-06-27 14:09:07 UTC
Description of problem:
It seems that /usr/share/file/magic.mime file contains ivalid line (19):

>>&1     string      webm  video/webm

The description says:
Column #1: byte number to begin checking from, ">" indicates continuation

Java mimeutil librart is unable to parse this line.

Version-Release number of selected component (if applicable):
file-4.17-28


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jan Kaluža 2013-06-27 15:31:38 UTC
To be sure, the error comes from some external library parsing magic.mime? I wasn't aware there's such thing in RHEL5...

Comment 2 Jan Kaluža 2013-06-27 15:58:57 UTC
The line is valid from libmagic/file's point of view, in "man magic" there is full description of the file format. I admit this particular feature was not used in magic.mime and it could break SW which also depends on format of this file. 

It's new information for me there's such SW in RHEL (I don't mean that ironically). If there is such SW, I think it's probably sane idea to remove webm magic pattern from magic.mime file.

Comment 3 RHEL Program Management 2013-06-27 16:01:25 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 4 Dominik Pospisil 2013-06-28 07:16:08 UTC
Yes, that is external library but it is not included RHEL. But as it is unable to parse the file and I was looking just to /usr/share/file/magic.mime I got the impression that the line is invalid. 

It would be nice if the magic.mime file contains reference to the man page with complete documentation as the info at the top of the file is incorrect.