[Ietf-message-headers] Packaging, was: provisional registration: packaged content over http (5 headers)

Julian Reschke <julian.reschke@gmx.de> Tue, 17 January 2012 09:05 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: ietf-message-headers@ietfa.amsl.com
Delivered-To: ietf-message-headers@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8E60F21F869C for <ietf-message-headers@ietfa.amsl.com>; Tue, 17 Jan 2012 01:05:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.532
X-Spam-Level:
X-Spam-Status: No, score=-103.532 tagged_above=-999 required=5 tests=[AWL=-0.933, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bo7mxHkiwFZw for <ietf-message-headers@ietfa.amsl.com>; Tue, 17 Jan 2012 01:05:30 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by ietfa.amsl.com (Postfix) with SMTP id 1F02421F8628 for <ietf-message-headers@ietf.org>; Tue, 17 Jan 2012 01:05:29 -0800 (PST)
Received: (qmail invoked by alias); 17 Jan 2012 09:05:28 -0000
Received: from p3EE27258.dip.t-dialin.net (EHLO [192.168.178.36]) [62.226.114.88] by mail.gmx.net (mp058) with SMTP; 17 Jan 2012 10:05:28 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/4MZwLl634ZTEGjG/7dC+7v0c7dyT8VxL4EM5S24 h6n/mzlmuvGynR
Message-ID: <4F1539D5.9000002@gmx.de>
Date: Tue, 17 Jan 2012 10:05:25 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: Graham Klyne <GK-lists@ninebynine.org>
References: <CACEoUB2mQpmXowez2s4mZSanALRoZLSmkNZ5JK=FoDk041kGkw@mail.gmail.com> <4F1534E0.6040006@ninebynine.org>
In-Reply-To: <4F1534E0.6040006@ninebynine.org>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: ietf-message-headers@ietf.org
Subject: [Ietf-message-headers] Packaging, was: provisional registration: packaged content over http (5 headers)
X-BeenThere: ietf-message-headers@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Discussion list for header fields used in Internet messaging applications." <ietf-message-headers.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-message-headers>, <mailto:ietf-message-headers-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf-message-headers>
List-Post: <mailto:ietf-message-headers@ietf.org>
List-Help: <mailto:ietf-message-headers-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-message-headers>, <mailto:ietf-message-headers-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2012 09:05:34 -0000

On 2012-01-17 09:44, Graham Klyne wrote:
> ...
> [[
> The Packaging header applies to resources delivered over HTTP which are
> comprised of component resources, and is for uniquely identifying these
> well structured packaged objects in a similar way that Content-Type does
> for MIME formats.
> ]]
>
> I think this would be a good opportunity to canvas for information about
> whether any other projects are addressing similar issues w.r.t.
> conveying information about packaging or composite object formats in
> HTTP. I'm pretty sure this isn't a one-off problem.

+1

> Packaging doesn't really fall into the role of a content-type, as it
> doesn't say anything about the nature of purpose of the packaged
> content. But it also is not really a content transfer encoding, as it
> may convey application-relevant metadata in addition to simply encoding
> content for transfer.
>
> The nearest I can think of that has been addressed in the IETF is the
> MHTML work from some years ago, which uses multipart/related structures
> to bundle up the content of a web page
> (http://tools.ietf.org/html/rfc2557). But that doesn't really work in
> this case, as SWORD and related applications are already using a number
> of alternative formats that don't easily map into a multipart/related or
> similar MIME encapsulation structure.
>
> [[
> The Packaging request header SHOULD be used by the client during HTTP
> POST to give information to the server about the packaging format used
> to construct the content being POSTed or PUT. Servers SHOULD use this

POST *and* PUT?

> information to unpack the supplied content into its component parts. If
> the server does not understand the package format it MUST either store
> the content as delivered without unpacking or respond with 415
> (Unsupported Media Type).
> ]]

No. 415 is for unsupported media types.

> It is not clear from this text that the SHOULD here applies to
> implementations of SWORD. For the header specification document, I think
> it would be better to avoid such normative claims about its use, which
> might be read as claiming that any HTTP client SHOULD use the header.
> e.g. just say "The Packaging request header may be used by a client ..."

 From the description in the spec it's not clear to me at all how this 
is supposed to work, and why it is needed in addition to the 
Content-Type. I'm sure there's a reason, but it really would be good to 
add more explanations.

Best regards, Julian