[Patches] [ python-Patches-438790 ] additional mappings for mimetypes.py

noreply@sourceforge.net noreply@sourceforge.net
Thu, 06 Sep 2001 01:58:55 -0700


Patches item #438790, was opened at 2001-07-05 08:13
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=438790&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Andreas Jung (ajung)
>Assigned to: Martin v. Löwis (loewis)
Summary: additional mappings for mimetypes.py

Initial Comment:
added some additional mapping for mimetypes.py.

Andreas

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2001-08-09 23:22

Message:
Logged In: YES 
user_id=21627

Just that Microsoft uses them should not cause us to 
violate internet standards. RFC 2045 specifies that the 
syntax of a subtype is

subtype := extension-token / iana-token
iana-token := <A publicly-defined extension token. Tokens
               of this form must be registered with IANA
               as specified in RFC 2048.>
x-token := <The two characters "X-" or "x-" followed, with
            no intervening white space, by any token>

Since text/xsl and text/xul are not registered as 
specified in RFC 2048, they are not valid types.

So our choice is to either follow Microsoft, or follow the 
Internet Standards. If the inclusion of text/xsl in the 
patch was intentional (rather than a mistake), I recommend 
to reject this patch.


----------------------------------------------------------------------

Comment By: Andreas Jung (ajung)
Date: 2001-08-09 18:22

Message:
Logged In: YES 
user_id=11084

the mimetypes for .xsl and xul are also in common usage. 

Andreas

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2001-08-09 14:10

Message:
Logged In: YES 
user_id=21627

I wasn't complaining about the x- types 
(application/x-javascript); they are fine. I was 
complaining about using unregistered types without an x- 
prefix, specifically

+     '.xsl': 'text/xsl',
+     '.xul': 'text/xul'

These are not valid MIME types, unless I'm missing 
something.

More generally, I was requesting that the IANA registry is 
analysed and this patch is brought in sync with it.


----------------------------------------------------------------------

Comment By: Andreas Jung (ajung)
Date: 2001-08-09 11:14

Message:
Logged In: YES 
user_id=11084

The x-* mimetypes are common used although they might not
be officially assigned. I would not remove these from the list.
This patch also relates to bug #439710 for better support of
user-defined mime-types.

Andreas

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-09 10:54

Message:
Logged In: YES 
user_id=6380

Still waiting for feedback...

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2001-07-18 23:42

Message:
Logged In: YES 
user_id=21627

I believe some of these types are not "official", in the 
sense that they are supported by an RFC; types that are 
not defined in an RFC MUST use the x- prefix. E.g. in what 
RFC is "text/xsl" or "text/xul" defined?

IOW, only types listed in 
http://www.isi.edu/in-notes/iana/assignments/media-types/
should be supported without x-prefix.

Could you please review the entire list of known types 
with this respect, and update the patch accordingly?


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=438790&group_id=5470