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 2006/08/03 11:03:35 UTC

DO NOT REPLY [Bug 40176] New: - magic and mime

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=40176

           Summary: magic and mime
           Product: Apache httpd-1.3
           Version: HEAD
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: szukw000@arcor.de


I feel that the 'conf/{mime.types,magic} files are outdated:

http-proto.c:  457: HTTP_ANSWER for
	'http://localhost/manual/images/mng120x74.mng'

HTTP/1.1 200 OK
Date: Wed, 26 Jul 2006 17:08:47 GMT
Server: Apache/1.3.36 (Unix) mod_ssl/2.8.27 OpenSSL/0.9.8a
Last-Modified: Tue, 18 Jul 2006 20:53:45 GMT
ETag: "2fe26-2ae94-44bd4a59"
Accept-Ranges: bytes
Content-Length: 175764
Connection: close
Content-Type: text/plain

=============================
Cnf. e.g.:
file --version
file-4.07

root: file /usr/local/apache/htdocs/manual/images/mng120x74.mng 
/usr/local/apache/htdocs/manual/images/mng120x74.mng: MNG video data, 120 x 74

==============================
Cnf. e.g. mozilla-1.7.13/dist/include/mimetype/nsMimeTypes.h :

#define IMAGE_MNG                           "video/x-mng"
#define IMAGE_JNG                           "image/x-jng"

===============================
With the attached patch I get:

http-proto.c:  457: HTTP_ANSWER for
	'http://localhost/manual/images/mng120x74.mng'

HTTP/1.1 200 OK
Date: Wed, 26 Jul 2006 18:03:32 GMT
Server: Apache/1.3.36 (Unix) mod_ssl/2.8.27 OpenSSL/0.9.8a
Last-Modified: Tue, 18 Jul 2006 20:53:45 GMT
ETag: "2fe26-2ae94-44bd4a59"
Accept-Ranges: bytes
Content-Length: 175764
Connection: close
Content-Type: video/x-mng


===================================

winfried

====================================

--- apache_1.3.36/conf/mime.types.orig	2006-07-26 19:26:30.000000000 +0200
+++ apache_1.3.36/conf/mime.types	2006-07-26 19:41:50.000000000 +0200
@@ -455,6 +455,7 @@
 image/gif			gif
 image/ief			ief
 image/jpeg			jpeg jpg jpe
+image/x-jng			jng
 image/naplps
 image/png			png
 image/prs.btif
@@ -590,3 +591,4 @@
 video/x-msvideo			avi
 video/x-sgi-movie		movie
 x-conference/x-cooltalk		ice
+video/x-mng			mng
--- apache_1.3.36/conf/magic.orig	2006-07-26 19:20:57.000000000 +0200
+++ apache_1.3.36/conf/magic	2006-07-26 19:26:17.000000000 +0200
@@ -251,6 +251,20 @@
 # JPEG images
 0	beshort		0xffd8		image/jpeg
 
+# MNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/>
+0	string		\x8aMNG			MNG video data,
+>4	belong		!0x0d0a1a0a		CORRUPTED,
+>4	belong		0x0d0a1a0a
+>>16	belong	x	%ld x
+>>20	belong	x	%ld
+
+# JNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/>
+0	string		\x8bJNG			JNG video data,
+>4	belong		!0x0d0a1a0a		CORRUPTED,
+>4	belong		0x0d0a1a0a
+>>16	belong	x	%ld x
+>>20	belong	x	%ld
+
 # PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
 0	string		BM		image/bmp
 #>14	byte		12		(OS/2 1.x format)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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