Re: [Ietf-message-headers] Packaging, was: provisional registration: packaged content over http (5 headers)
Julian Reschke <julian.reschke@gmx.de> Tue, 17 January 2012 14:57 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 ADF4921F86E5 for <ietf-message-headers@ietfa.amsl.com>; Tue, 17 Jan 2012 06:57:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.525
X-Spam-Level:
X-Spam-Status: No, score=-103.525 tagged_above=-999 required=5 tests=[AWL=-0.926, 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 YxMOnJT-RPc5 for <ietf-message-headers@ietfa.amsl.com>; Tue, 17 Jan 2012 06:57:21 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by ietfa.amsl.com (Postfix) with SMTP id A5CDB21F86E0 for <ietf-message-headers@ietf.org>; Tue, 17 Jan 2012 06:57:20 -0800 (PST)
Received: (qmail invoked by alias); 17 Jan 2012 14:57:18 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.140]) [217.91.35.233] by mail.gmx.net (mp005) with SMTP; 17 Jan 2012 15:57:18 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19f1g10BaNf5iwzajpz+O4MK1s/Shzq6SiDOId1tw vuQ+QW0jxjV/re
Message-ID: <4F158C4B.9090205@gmx.de>
Date: Tue, 17 Jan 2012 15:57:15 +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: Richard Jones <rich.d.jones@gmail.com>
References: <CACEoUB2mQpmXowez2s4mZSanALRoZLSmkNZ5JK=FoDk041kGkw@mail.gmail.com> <4F1534E0.6040006@ninebynine.org> <4F1539D5.9000002@gmx.de> <CACEoUB19kh_MSOO9BahceLimcBP+2O01rAgtf=_rgKXd_O-tGA@mail.gmail.com>
In-Reply-To: <CACEoUB19kh_MSOO9BahceLimcBP+2O01rAgtf=_rgKXd_O-tGA@mail.gmail.com>
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: Re: [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 14:57:21 -0000
On 2012-01-17 15:49, Richard Jones wrote: > Hi Julian, > > On Tue, Jan 17, 2012 at 9:05 AM, Julian Reschke <julian.reschke@gmx.de > <mailto:julian.reschke@gmx.de>> wrote: > > On 2012-01-17 09 <tel:2012-01-17%2009>: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 > > > Is this something we can do through this or another IETF list? I think this is something for apps-discuss. > 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 > <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? > > > Yes. The use case is that if you've POSTed a package before, you might > want to replace it, so you could PUT a new package (potentially in a > different format) to the original package URI. So will the resource at the target URI continue to be the packaged variant? If not, you really shouldn't use PUT here. > > 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. > > > Ok, interesting; what response should be returned? Either 400, or you'd have to define a new status code. > 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. > > > The main issue is that Content-Type is for the mimetype, which would be > something like application/zip, whereas the Packaging header allows us > to define what is inside the zip; for example, it may by a BagIt, or a > METS package, or such? OK, but how does this affect processing? > Do you imagine a way in which the packaging could be included in the > Content-Type? We did look into Media Formats, but their general > adoption level seemed quite low, and this approach felt simpler. Potentially a media type parameter? Best regards, Julian
- [Ietf-message-headers] provisional registration: … Richard Jones
- Re: [Ietf-message-headers] provisional registrati… Graham Klyne
- Re: [Ietf-message-headers] provisional registrati… Julian Reschke
- [Ietf-message-headers] Packaging, was: provisiona… Julian Reschke
- Re: [Ietf-message-headers] provisional registrati… Julian Reschke
- Re: [Ietf-message-headers] provisional registrati… Richard Jones
- Re: [Ietf-message-headers] Packaging, was: provis… Richard Jones
- Re: [Ietf-message-headers] Packaging, was: provis… Julian Reschke