Bug 979061 - magic.mime contains invalid line
Summary: magic.mime contains invalid line
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: file
Version: 5.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-27 14:09 UTC by Dominik Pospisil
Modified: 2013-06-28 07:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-28 07:16:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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