You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/02/08 21:27:53 UTC

DO NOT REPLY [Bug 16908] New: - mod_mime_magic incorrectly handles unrecognized files

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16908>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16908

mod_mime_magic incorrectly handles unrecognized files

           Summary: mod_mime_magic incorrectly handles unrecognized files
           Product: Apache httpd-1.3
           Version: 1.3.27
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other mods
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: agapon@telcordia.com


there is a bug in mod_mime_magic, due to which mod_mime_magic sets content type
for a file, that it can not actually recognize, to text/plain and returns
successful status. This happens because ascmagic() sets type to 'text/plain'
and reurns success even if all magic check have failed. In addition to that,
even if ascmagic() would behave correctly, module would anyway set content type
to application/octet-stream and returned success.
Such a behaviour (1) overrides DefaultType parameter and makes it useless in
the presense of mod_mime_magic and (2) puts too much intelegence in 
mod_mime_magic by making a decision about 'last resort' content type, instead
of honestly returning an error.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org