Bug 979061 - magic.mime contains invalid line
magic.mime contains invalid line
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: file (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Jan Kaluža
BaseOS QE Security Team
Depends On:
  Show dependency treegraph
Reported: 2013-06-27 10:09 EDT by Dominik Pospisil
Modified: 2013-06-28 03:16 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-28 03:16:08 EDT
Type: Bug
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 Dominik Pospisil 2013-06-27 10:09:07 EDT
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):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
Comment 1 Jan Kaluža 2013-06-27 11:31:38 EDT
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 11:58:57 EDT
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 Product and Program Management 2013-06-27 12:01:25 EDT
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 03:16:08 EDT
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.

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