[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

[error] mod_mime_magic: type search/400\t\\\\setlength\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 <rrt@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
jwm@horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__



Reply to: