Bug 8329 - mime_magic gives 500 and no error_log on Microsoft .ANI cursor files
Summary: mime_magic gives 500 and no error_log on Microsoft .ANI cursor files
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-1.3
Classification: Unclassified
Component: Other mods (show other bugs)
Version: 1.3.24
Hardware: PC Linux
: P3 normal with 3 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://msdn.microsoft.com/workshop/sa...
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2002-04-20 14:55 UTC by David
Modified: 2008-08-01 15:44 UTC (History)
1 user (show)



Attachments
log an error when mod_mime_magic returns the dreaded 500 error (887 bytes, patch)
2002-09-19 09:50 UTC, Jeff Trawick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David 2002-04-20 14:55:26 UTC
When mod_mime_magic attempts to identify a Microsoft .ANI cursor file, it 
causes a 500 Internal Server Error. The access_log shows 500 for that request 
but nothing appears in the error_logs.

The command line 'file' utility successfully identifies the file as:
banana.ani: RIFF (little-endian) data, animated cursor

Disabling mod_mime_magic causes the file to be served just fine.

A file renamed to an .ANI extension will also be served just fine so long as 
it isn't really an ANI format cursor.

This has been present since at least Apache 1.3.17

You can download an ANI-format cursor from the URL above.
Comment 1 Jeff Trawick 2002-09-19 09:50:35 UTC
Created attachment 3132 [details]
log an error when mod_mime_magic returns the dreaded 500 error
Comment 2 Jeff Trawick 2002-09-19 09:53:17 UTC
I've attached a patch which logs a message when 500 errors are returned
from mod_mime_magic.  This change was committed to Apache 2.0 quite a
while ago.

If I recall correctly, formatting errors in the magic file (e.g., incorrect
whitespace, missing fields) can lead to some such errors.
Comment 3 Jeff Trawick 2003-12-19 03:13:58 UTC
we shouldn't return 500 with no error log explaining why!
Comment 4 Roy T. Fielding 2008-08-01 15:44:28 UTC
Fixed in 1.3.30