Re: Atom Content Negotiation (follow-up)

Hadrien Gardeur <hadrien.gardeur@feedbooks.com> Wed, 11 May 2011 12:59 UTC

Return-Path: <owner-atom-syntax@mail.imc.org>
X-Original-To: ietfarch-atompub-archive@ietfa.amsl.com
Delivered-To: ietfarch-atompub-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 776ADE07EB for <ietfarch-atompub-archive@ietfa.amsl.com>; Wed, 11 May 2011 05:59:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level:
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16cV6kH875ef for <ietfarch-atompub-archive@ietfa.amsl.com>; Wed, 11 May 2011 05:58:59 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2001:4870:a30c:41::81]) by ietfa.amsl.com (Postfix) with ESMTP id 502D2E078B for <atompub-archive@ietf.org>; Wed, 11 May 2011 05:58:56 -0700 (PDT)
Received: from hoffman.proper.com (localhost [127.0.0.1]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id p4BCpYQn008235 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 May 2011 05:51:34 -0700 (MST) (envelope-from owner-atom-syntax@mail.imc.org)
Received: (from majordom@localhost) by hoffman.proper.com (8.14.4/8.13.5/Submit) id p4BCpY9h008234; Wed, 11 May 2011 05:51:34 -0700 (MST) (envelope-from owner-atom-syntax@mail.imc.org)
X-Authentication-Warning: hoffman.proper.com: majordom set sender to owner-atom-syntax@mail.imc.org using -f
Received: from mail-yw0-f43.google.com (mail-yw0-f43.google.com [209.85.213.43]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id p4BCpXoj008226 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for <atom-syntax@imc.org>; Wed, 11 May 2011 05:51:34 -0700 (MST) (envelope-from hadrien.gardeur@feedbooks.com)
Received: by ywa6 with SMTP id 6so197393ywa.16 for <atom-syntax@imc.org>; Wed, 11 May 2011 05:51:33 -0700 (PDT)
Received: by 10.151.143.14 with SMTP id v14mr7528367ybn.132.1305118293111; Wed, 11 May 2011 05:51:33 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.103.21 with HTTP; Wed, 11 May 2011 05:51:13 -0700 (PDT)
In-Reply-To: <4DC85ABE.1090005@berkeley.edu>
References: <4DBC60F4.7000402@berkeley.edu> <BLU122-W686A8FCBEDB816FFA2BF8BE9D0@phx.gbl> <4DBCF02B.6080601@berkeley.edu> <BLU122-W284C7C2E53440F1AFE1BCBBE9F0@phx.gbl> <BANLkTind+QFCUdLpJf5PrW_zg5Mu4wjSXg@mail.gmail.com> <4DBEEA14.2060907@berkeley.edu> <BANLkTikxeNK=nKLHpZk6RJab3uo8f1TN1A@mail.gmail.com> <4DC85ABE.1090005@berkeley.edu>
From: Hadrien Gardeur <hadrien.gardeur@feedbooks.com>
Date: Wed, 11 May 2011 14:51:13 +0200
Message-ID: <BANLkTi=Rx3F+hQEmOy+Atvdf9jJTfO3=iQ@mail.gmail.com>
Subject: Re: Atom Content Negotiation (follow-up)
To: Erik Wilde <dret@berkeley.edu>
Cc: atom-syntax@imc.org
Content-Type: multipart/alternative; boundary="0015174c447840339704a2ff8807"
Sender: owner-atom-syntax@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/atom-syntax/mail-archive/>
List-Unsubscribe: <mailto:atom-syntax-request@imc.org?body=unsubscribe>
List-ID: <atom-syntax.imc.org>

>
> like i said before, philosophically, i do agree that this would be cleaner
> and the better approach. but we would need to update the atom spec which, as
> i am reading it, does not allow for extensibility of media type parameters:
>
> http://tools.ietf.org/html/rfc4287#section-7 says that the only allowed
> parameter is "charset". i think the way to go for all of this to be nice and
> clean would be to add a "content-type" parameter, which as a value would
> have a media type (the media type of the content embedded or linked to by
> the feed). this raises two questions:
>

There's also http://tools.ietf.org/html/rfc5023#section-12



> - is that kind of parameter value even allowed in a media type? and if it
> is, how many media type parsers might possibly break because a media type
> would contain "two media types"?
>

That's a valid point indeed.



> - how realistic is it to update RFC 4287 in that way, which as i understand
> it would not be backwards compatible?
>
> if that was a realistic way to go, even things such as
> http://www.w3.org/TR/html5/links.html#rel-alternate might need to be
> updated, so that the new features would be allowed/supported (and shouldn't
> HTML5 allow the optional charset parameter that is possible according to RFC
> 4287?).
>
> any feedback on this would be greatly appreciated. kind regards,


I believe that what you're trying to deal with is actually a much more
generic problem than what you're describing.

If I'm distributing bitmap files, but for obvious reasons, I decide to use a
zip archive containing all these bitmap files together, how do I indicate in
Atom that this archive contains bitmap files ? We do not have an easy way to
express this kind of information in Atom, we simply point to the archive
URL, using the zip mimetype. Other containers (DRM files for example,
various audio & video containers) have a similar problem.

As far as I can tell, you're interested in using Atom as an
envelope/container, to distribute multiple representations of the same
information. In this case, what you're actually doing is not "content
negotiation", it is the exact same situation than with other containers.

Hadrien