Bug#483111: apache's mod_mime_magic does not support newer libmagic functionality

2009-07-07 Thread John Morrissey
mod_mime_magic's parse() does not grok the search/[[:digit:]]\{1,\} magic
type and emits errors:

[error] mod_mime_magic: type search/400\tsetlength\ttext/x-tex invalid

for every line in /usr/share/file/magic.mime that uses it (6 lines in
file=4.26-1). In addition, mime_magic logs errors:

mod_mime_magic: invalid type 0 in mconvert()., referer: [...]

for every request it's invoked on, one error per invalid line in
magic.mime.

It seems #483111 could be folded into #366023, and the latter assigned to
apache2.2-common, since they share a root cause.

As Reuben Thomas r...@sc3d.org mentions, mod_mime_magic probably shouldn't
be reading /usr/share/file/magic.mime, as libmagic may be updated with new
functionality that mod_mime_magic won't be able to grok. I'm not sure if
it's appropriate/best to link mod_mime_magic against libmagic for parsing
duty; upstream apache2 trunk is still parsing the file itself.

john
-- 
John Morrissey  _o/\   __o
j...@horde.net_- \_  /  \   \,
www.horde.net/__(_)/_(_)/\___(_) /_(_)__



-- 
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#483111: apache's mod_mime_magic does not support newer libmagic functionality

2009-07-07 Thread Stefan Fritsch
On Tuesday 07 July 2009, John Morrissey wrote:
 As Reuben Thomas r...@sc3d.org mentions, mod_mime_magic probably
 shouldn't be reading /usr/share/file/magic.mime, as libmagic may be
 updated with new functionality that mod_mime_magic won't be able to
 grok. I'm not sure if it's appropriate/best to link mod_mime_magic
 against libmagic for parsing duty; upstream apache2 trunk is still
 parsing the file itself.

apache2.2-common should bring its own magic.mime file in a format that 
apache understands. I don't think apache can be easily made to use 
libmagic.




-- 
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org