Received: (qmail 19052 invoked by uid 501); 16 May 2001 20:48:23 -0000 Message-Id: <20010516204823.19050.qmail@apache.org> Date: 16 May 2001 20:48:23 -0000 From: Linus Walleij Reply-To: triad@df.lth.se To: submit@bugz.apache.org Subject: magic file is a bit outdated X-Send-Pr-Version: 3.110 >Number: 7730 >Category: config >Synopsis: magic file is a bit outdated >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: apache >Arrival-Date: Wed May 16 13:50:02 PDT 2001 >Closed-Date: Tue Mar 26 10:43:48 PST 2002 >Last-Modified: Tue Mar 26 10:43:48 PST 2002 >Originator: triad@df.lth.se >Release: 2.0 >Organization: >Environment: Any. No platform-specific issue. >Description: I noticed that the magic file fails to recognize some nowadays popular and perfectly legal MIME-types. I have a patch. >How-To-Repeat: Try for example have the magic module recognize a video/quicktime file. >Fix: Yes, here is a patch for the "magic" file with some new magic (not everyone I could come up with, but some): 90c90 < 0 string RIFF audio/unknown --- > 0 string RIFF audio/unknown 92,101c92 < >8 string WAVE audio/x-wav < < # MPEG audio, from Linus Walleij < # Recognizes an MPEG audio file with ID3v2 header. MPEG audio < # does not have a clear enough file format to recognize further < # magic bytes. < 0 string ID3 audio/mpeg < < # C64 SID Music files, from Linus Walleij < 0 string PSID audio/prs.sid --- > >8 string WAVE audio/x-wav 197,205d187 < # XML eXtensible Markup Language, from Linus Walleij < 0 string \ < # from Apple quicktime file format documentation. < 4 string moov video/quicktime >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: jerenkrantz State-Changed-When: Tue Mar 26 10:43:48 PST 2002 State-Changed-Why: Fixed in revision 1.5 of mime.magic in the 1.3 tree and fixed in revision 1.3 of mime.magic in the 2.0 tree. (This should be included in the forthcoming 2.0.34 release.) Thanks for using Apache httpd! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]