Re: [media-types] Multipart without boundaries

Phillip Hallam-Baker <phill@hallambaker.com> Mon, 18 March 2024 04:00 UTC

Return-Path: <hallam@gmail.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 815E7C14F6BC for <media-types@ietfa.amsl.com>; Sun, 17 Mar 2024 21:00:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.403
X-Spam-Level:
X-Spam-Status: No, score=-1.403 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
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 dk5uyCaLQYjk for <media-types@ietfa.amsl.com>; Sun, 17 Mar 2024 21:00:30 -0700 (PDT)
Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 06A9AC14F6AF for <media-types@ietf.org>; Sun, 17 Mar 2024 21:00:30 -0700 (PDT)
Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-222a7703048so681361fac.1 for <media-types@ietf.org>; Sun, 17 Mar 2024 21:00:29 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710734429; x=1711339229; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Syb81O66pM8gCbBX3HdHAnV0kj3Mo0iS9fvMtlWjgXI=; b=WdRjQQIu2LvkVcoTvMR1Df1N+nlBglpKs63JyudgX/QacbOfi4Z3BSHSALlYZuV4HS 34ya1Nz+iI+UB9oYNZRaM967CoGpsPc9XlImGzcmEZyAFgz3UScHW9O4J6tkBIXbFnws RTFAaYPbWTYHPjeScEo1x9Qn0ppwL5/85Z+wDbiRMK6o3zxFNEUOgigbCVOI2O4LHfoH LzNQ2xgocCVK0TnGJDF6ofzepq7wIWpJ1COYrILPuyOzuMuSq6Zwv9vSjulUyxY4Vg57 KjTwI+z8yf+BVBPzC/bZUO4cEhzIZwaKM81NqSD5zI/7wnfnk82DNAbhY/KS35M/Px3N mkSQ==
X-Forwarded-Encrypted: i=1; AJvYcCW3Ba2QBXsf3J7SKUnUVpF1CFlltz3TBLnDq5cNpg+e6P3X1ikFtFGukZ2D2zLslJ4Qvk+MiE1HwvaGNvXnjvGJVJTBnA==
X-Gm-Message-State: AOJu0Yxj2/vD01CT7TM3FzVjB9hr3YA0Nio2v5oAm6mTrkH2TH5rfy8z 9SqKCYta9mhHl2K7T66BGX05hDq6H2vG7Pq6xG62UsWYwFNC9i8HXdXVWW9fMOKTXt1q2pB1e9Y Z6hb8nH7sjLsX67H8z/zvZxBodTzzxJZ2
X-Google-Smtp-Source: AGHT+IGnVXMPQG5/Hi2a0dyVYT8PnXnflmM4+WubsLpLLwFBlT8wJV7knkATtylp5aCUzkkAIi2ABl+sAp1CFzJ6GXs=
X-Received: by 2002:a05:6870:618a:b0:222:7158:d015 with SMTP id a10-20020a056870618a00b002227158d015mr10411762oah.32.1710734429089; Sun, 17 Mar 2024 21:00:29 -0700 (PDT)
MIME-Version: 1.0
References: <DPpVLsMpOTXGKBc_0YGGl1OLVitXsltzuXX7S-ACdXvkVATr8nokumY3UXzSsIFcWF-szUouy-0Sb3iJLdonZaQGqNQPs9LWH1Tb1geKIUU=@protonmail.com> <e4a5042e-45bf-4fbe-90d0-582629fdaf79@alvestrand.no>
In-Reply-To: <e4a5042e-45bf-4fbe-90d0-582629fdaf79@alvestrand.no>
From: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Mon, 18 Mar 2024 00:00:17 -0400
Message-ID: <CAMm+LwhXdoB0FYsn-96zFPb8DacB4Y8_afKZqYXNkkp_7+zYmA@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Cc: Rahul Gupta <cxres=2Bietf=40protonmail.com@dmarc.ietf.org>, "media-types@ietf.org" <media-types@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f379bd0613e765db"
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/c5sgVOVtTNQY9caGD_udVFU1s-8>
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: Mon, 18 Mar 2024 04:00:33 -0000

Content-Length is a HTTP field, it is not a MIME field.

I invented it while fixing a design oversight in the POST method which
didn't work as originally specified as HTTP signalled the end of content by
closing the connection. Which doesn't work for POST since you want to get a
reply.

This came up in a patent lawsuit in which a troll claimed to have invented
Web Mail which was a bit rich given that it was the test case I used to
develop the POST method in 1993 and there was published proof. What they
had done of course was backdate their patent claim by attaching it to a
submarine patent.

MIME doesn't have Content-Length because it is designed to work in SMTP.
HTTP has Content-Length because it is purposefully and deliberately
designed to break if middle boxes molest the content.

I was fully aware of the then current IETF theories in this regard, I just
didn't consider the arguments compelling having repeatedly corrupted FTP
downloads because the braindead spec says to do ASCII conversion by default
and as for having mail servers wrap lines at 72 characters...


On Sat, Mar 16, 2024 at 8:08 PM Harald Alvestrand <harald@alvestrand.no>
wrote:

> Thanks for your submission!
>
> The definition of new media types is outside of the charter of MEDIAMAN,
> though.
>
> 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.
>
> 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.
>
>
> 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
>
> _______________________________________________
> media-types mailing list
> media-types@ietf.org
> https://www.ietf.org/mailman/listinfo/media-types
>