Re: [media-types] Multipart without boundaries

Rahul Gupta <cxres+ietf@protonmail.com> Sun, 17 March 2024 09:27 UTC

Return-Path: <cxres+ietf@protonmail.com>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 172B2C14F600 for <media-types@ietfa.amsl.com>; Sun, 17 Mar 2024 02:27:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=protonmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C_vh0sbax21U for <media-types@ietfa.amsl.com>; Sun, 17 Mar 2024 02:27:46 -0700 (PDT)
Received: from mail-40137.protonmail.ch (mail-40137.protonmail.ch [185.70.40.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 556CEC14F68D for <media-types@ietf.org>; Sun, 17 Mar 2024 02:27:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1710667645; x=1710926845; bh=YCkHmN4oaERV1/SvUq8SnwyOkR28B/hfYYCQ/hxR38Y=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=myAB+6CEG1Nq3ig11SY/8K1wSuhl3i09qUOW4RG9n3rwC5ua1Ozfx2/vuc/WYH0ia ghOUhZ2kN/Gzb1ynwrwVVxayffmCH6sg2qYh8+4Dgz1VOtU0fp5JO9EwvniEmd2MLV QGNzxu7kdkIQYkWa0Ab2yIfURIFoxHLJ+W3XQGAsRY/In2RQ/Tb+o4+iOnZ+WZ0b24 V0/+gwaGYN90bIaCQtLt3V1qY3tcVIklcXCUcDMVEvH3EUMZfU7ypqY88l9skrCMk0 mpbt0ppxqjClDwZPfCIQ7aijLLm5rgHPKdmlTFUp7j9ofvdodonqeBp1jR6JjQtu0U Jtt+A2OGNDcfw==
Date: Sun, 17 Mar 2024 09:27:04 +0000
To: Harald Alvestrand <harald@alvestrand.no>, "media-types@ietf.org" <media-types@ietf.org>
From: Rahul Gupta <cxres+ietf@protonmail.com>
Message-ID: <6ekkB4s9oKqzf1lWyqUXbYCwbz95TB2bVd54lDdv-NQb4KyNLwY6sUDQAcq2cAIhlaHICSEwa-YwcS42nJXuTHzI8Q3yrkOK-fewFXLiWXc=@protonmail.com>
In-Reply-To: <e4a5042e-45bf-4fbe-90d0-582629fdaf79@alvestrand.no>
References: <DPpVLsMpOTXGKBc_0YGGl1OLVitXsltzuXX7S-ACdXvkVATr8nokumY3UXzSsIFcWF-szUouy-0Sb3iJLdonZaQGqNQPs9LWH1Tb1geKIUU=@protonmail.com> <e4a5042e-45bf-4fbe-90d0-582629fdaf79@alvestrand.no>
Feedback-ID: 919445:user:proton
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha256"; boundary="------bacc6846349bf003aa330688d0bded8f523c69274e97774156b0df3528f57301"; charset="utf-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/H74mQ6UBIoB_Yj2zP-uUMAhEShU>
Subject: Re: [media-types] Multipart without boundaries
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 17 Mar 2024 09:27:51 -0000

Hi Harald,

I must admit this is a bit of a Hail Mary! 


But the problem itself is well outlined in the draft, even if the answer might be something different. Coming to you all is so that you can help me figure out that answer.

Please see specific comments interleaved...

On Sunday, March 17th, 2024 at 5:38 AM, Harald Alvestrand <harald@alvestrand.no> wrote:

> Thanks for your submission!
> 

> The definition of new media types is outside of the charter of MEDIAMAN,
> though.

This is to answer to both Harald and Alexey,

I came to MEDIAMAN because I think I am updating an existing (ancient?) media-type.

I am open to the possibility of defining a "manypart" top level media-type but felt that it would be easier to reuse most of the existing "multipart" standard. But I would like to benefit from your knowledge of this group even in the case I end up defining a "manypart".

> 

> Personally, I think that using "content-length:" for generic multipart
> content is likely to be a design mistake - there's too much processing
> that subtly alters the length of the message. It would only be
> dependable if you were to pair it with a message checksumming mechanism
> such as Content-MD5 so that content modifications could be detected -
> and it would still not allow you to reconstruct the original message if
> the signature was broken by a transform.

Just want to make sure that it is clear that "Content-Length" is defined for each Part and not for the Multipart (since "message" could be mean either). And I have added a condition saying that "Content-Length" on Parts are otherwise interpreted as per RFC9110.

> 

> Content delimiting is a subject with long traditions - the "chunked"
> content-transfer-encoding and the delimiting of message bodies in
> HTTP/1.1 are just two of the areas in which it has been approached.
> 

The representation body will still to have `Transfer-Encoding: chunked` to say that the body is not delimited in advance. And then my intention is delimit each part with "Content-Length". Is there something specific in this tradition you would like me to look at.


> 

> On 3/15/24 10:18, Rahul Gupta wrote:
> 

> > Hello Media-type enthusiasts,
> > 

> > I am proposing a new Internet-Draft "Multipart without Boundaries".
> > https://cxres.github.io/multipart-without-boundaries/draft-gupta-mediaman-multipart-without-boundaries.html
> > 

> > Like the title says, it proposes a new syntax that uses `Content-Length` in each part and thus does not use boundary delimiter to separate encapsulated parts. As explained in the draft, this solves an outstanding issue when parts are dynamically generated (and generally simplifies parsing), especially when used in notification protocols (It is inspired from Braid's subscription response, but respects existing HTTP content-type conventions).
> > 

> > One issue that I faced while writing this draft is that I could not find a IANA registration for the "boundary" parameter for "multipart" media-type in any of the registries. So I am not sure of what instructions to give to IANA for the "no-boundary" parameter.
> > 

> > This is a tiny draft that solves a very specific and limited issue. I know that I am too late for I-D submission and publishing it almost on the eve of the Brisbane round, but I would still appreciate it if the Chair could please sneak it in at least as an announcement (or 5 minute discussion) in the Mediaman session.
> > 

> > Thanks in advance,
> > 

> > Best Regards,
> > Rahul
> > 

> > _______________________________________________
> > media-types mailing list
> > media-types@ietf.org
> > https://www.ietf.org/mailman/listinfo/media-types

BR/Rahul