JMAP Blob management extension
draft-gondwana-jmap-blob-01

Document Type Active Internet-Draft (individual)
Author Bron Gondwana 
Last updated 2020-11-15
Stream (None)
Intended RFC status (None)
Formats plain text html xml pdf htmlized (tools) htmlized bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
JMAP                                                    B. Gondwana, Ed.
Internet-Draft                                                  Fastmail
Updates: 8620 (if approved)                             16 November 2020
Intended status: Standards Track                                        
Expires: 20 May 2021

                     JMAP Blob management extension
                      draft-gondwana-jmap-blob-01

Abstract

   The JMAP base protocol (RFC8620) provides the ability to upload and
   download arbitrary binary data via HTTP PUT and GET on defined
   endpoint.  This binary data is called a "Blob".

   This extension adds additional ways to handle Blobs, by making inline
   method calls within a standard JMAP request.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on 20 May 2021.

Copyright Notice

   Copyright (c) 2020 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

Gondwana                   Expires 20 May 2021                  [Page 1]
Internet-Draft                  JMAP Blob                  November 2020

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents (https://trustee.ietf.org/
   license-info) in effect on the date of publication of this document.
   Please review these documents carefully, as they describe your rights
   and restrictions with respect to this document.  Code Components
   extracted from this document must include Simplified BSD License text
   as described in Section 4.e of the Trust Legal Provisions and are
   provided without warranty as described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Conventions Used In This Document . . . . . . . . . . . . . .   3
   3.  Blobs . . . . . . . . . . . . . . . . . . . . . . . . . . . .   3
     3.1.  Blob/set  . . . . . . . . . . . . . . . . . . . . . . . .   3
       3.1.1.  create  . . . . . . . . . . . . . . . . . . . . . . .   3
       3.1.2.  update  . . . . . . . . . . . . . . . . . . . . . . .   4
       3.1.3.  destroy . . . . . . . . . . . . . . . . . . . . . . .   4
     3.2.  Blob/get  . . . . . . . . . . . . . . . . . . . . . . . .   5
     3.3.  Blob/lookup . . . . . . . . . . . . . . . . . . . . . . .   6
   4.  Security considerations . . . . . . . . . . . . . . . . . . .   6
   5.  IANA considerations . . . . . . . . . . . . . . . . . . . . .   7
   6.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .   7
   7.  Normative References  . . . . . . . . . . . . . . . . . . . .   7
   8.  Informative References  . . . . . . . . . . . . . . . . . . .   7
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .   7

1.  Introduction

   Sometimes JMAP ([RFC8620]) interactions require creating a Blob and
   then referencing it.  In the same way that IMAP Literals ([RFC7888])
   were extended to reduce roundtrips for simple data, embedding simple
   small blobs into the JMAP method stream can reduce roundtrips.

   Likewise, when fetching an object, it can be useful to also fetch the
   raw content of that object without a separate roundtrip.

   Where JMAP is being proxied through a system which is providing
   additional access restrictions, it can be useful to be able to see
   where a blob is referenced in order to decide whether to allow it to
   be downloaded.

Gondwana                   Expires 20 May 2021                  [Page 2]
Internet-Draft                  JMAP Blob                  November 2020

2.  Conventions Used In This Document

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in BCP
   14 [RFC2119] [RFC8174] when, and only when, they appear in all
   capitals, as shown here.

3.  Blobs

   A blob is a sequence of zero or more octets.

   The JMAP base spec [RFC8210] defines the "Blob/copy" method, which is
   unchanged by this specfication.

3.1.  Blob/set

   This is a standard JMAP "set" method.

3.1.1.  create

   *Properties:*

   Any one of:

   *  data:asText: String|null

   *  data:asBase64: String|null

   *  data:asHex: String|null

   *  catenate: [SetObject] _list of byte sources in order_
Show full document text