Re: Scope of application/* media types (was: Protocol changes in draft-allbery-usefor-usepro-00)

Ned Freed <ned.freed@mrochek.com> Sat, 30 December 2006 00:17 UTC

Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1H0RuI-0006LE-R4 for usefor-archive@lists.ietf.org; Fri, 29 Dec 2006 19:17:02 -0500
Received: from balder-227.proper.com ([192.245.12.227]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H0RuG-0004ga-LN for usefor-archive@lists.ietf.org; Fri, 29 Dec 2006 19:17:02 -0500
Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id kBU04klo084430; Fri, 29 Dec 2006 17:04:46 -0700 (MST) (envelope-from owner-ietf-usefor@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id kBU04kKN084429; Fri, 29 Dec 2006 17:04:46 -0700 (MST) (envelope-from owner-ietf-usefor@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-usefor@mail.imc.org using -f
Received: from mauve.mrochek.com (netblock-68-183-106-173.brandx.net [68.183.106.173] (may be forged)) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id kBU04csW084421 for <ietf-usefor@imc.org>; Fri, 29 Dec 2006 17:04:43 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MBAYUX42OG005N3E@mauve.mrochek.com> for ietf-usefor@imc.org; Fri, 29 Dec 2006 16:04:30 -0800 (PST)
DKIM-Signature: a=rsa-sha1; c=nowsp; d=mrochek.com; s=mauve; t=1167437068; h=Date: From:Subject:MIME-version:Content-type; b=BzhVvUT8ZzEuTE9HLpLQUR9HZ IK89oxrTeExizL/lIem3uOFc5BeZIc8dk4Qc6NCNv9rScV87Ci93Pab7rppaw==
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MB1DWFZ65C00005H@mauve.mrochek.com>; Fri, 29 Dec 2006 16:04:27 -0800 (PST)
Cc: ietf-usefor@imc.org
Message-id: <01MBAYUVUPKU00005H@mauve.mrochek.com>
Date: Fri, 29 Dec 2006 15:54:05 -0800
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: Scope of application/* media types (was: Protocol changes in draft-allbery-usefor-usepro-00)
In-reply-to: "Your message dated Fri, 29 Dec 2006 14:03:02 -0800" <877iwagy21.fsf_-_@windlord.stanford.edu>
MIME-version: 1.0
Content-type: TEXT/PLAIN
References: <JA8C4p.Anu@clerew.man.ac.uk> <873b7i9b2m.fsf@windlord.stanford.edu> <JAHJs5.FHC@clerew.man.ac.uk> <877iwagy21.fsf_-_@windlord.stanford.edu>
To: Russ Allbery <rra@stanford.edu>
Sender: owner-ietf-usefor@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-usefor/mail-archive/>
List-Unsubscribe: <mailto:ietf-usefor-request@imc.org?body=unsubscribe>
List-ID: <ietf-usefor.imc.org>
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 8b431ad66d60be2d47c7bfeb879db82c

> > > I can't think of an example of how application/news-groupinfo could be
> > > dangerous.  It's nothing but a bit of text giving a newsgroup name and a
> > > description.  In and of itself, it has no force, power, or action
> > > whatsoever.

> > Application types are intended to cause applications to be invoked, with
> > possible side effects.

> Could you provide a reference for this?  I don't see this statement in RFC
> 2046.

That's likely because the invokation of applications is an implementation
artefact rather than a core feature of MIME. In particular, some (but by no
means all) handle different media types through an application dispatch
mechanism. RFC 1343 even defines a specific format to use for such information
- the so-called mailcap format. This is, however, an informational RFC, not a
standard, and not only is there no requirement that such a mechanism be used,
lots of implementations don't work this way.

> The closest that it has is:

>    The "application" media type is to be used for discrete data which do
>    not fit in any of the other categories, and particularly for data to
>    be processed by some type of application program.  This is
>    information which must be processed by an application before it is
>    viewable or usable by a user.

> "To be processed" is far from saying that reception of an application type
> will cause an application to be invoked.  application/octet-stream is an
> obvious counter-example to this interpretation.

Right. Furthermore, there's nothing that says video, image, audio, message or
model types are exempt from processing and the generation of side effects. For
that matter, it may be reasonable in some cases to handle text types by
dispatching to an external application, e.g., in a voice mail system.

> Our case falls into the general scope ("discrete data which do not fit in
> any of the other categories") but not fully into the specific one ("data
> to be processed by some type of application program").  Our media types
> are actually text/* types; the only reason why they're not declared as
> such is because text/* comes with baggage involving CTEs that we can't
> accept.  Declaring them as application/* is in essence a hack around the
> MIME object structure, although unfortunately a necessary one.

Yes, and while there have been various proposals to define an additional
top-level type or types to deal with the baggage associated with text, none of
them have received much support so far.

				Ned