[scim] RFC7644: add operation for PATCH question

Tangui Le Pense <tangui.lepense@mail.ru> Tue, 04 August 2020 12:06 UTC

Return-Path: <tangui.lepense@mail.ru>
X-Original-To: scim@ietfa.amsl.com
Delivered-To: scim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 588473A0A53 for <scim@ietfa.amsl.com>; Tue, 4 Aug 2020 05:06:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.198
X-Spam-Level:
X-Spam-Status: No, score=-0.198 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_BL=0.001, RCVD_IN_MSPIKE_L3=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mail.ru
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VNsuFz63bMdq for <scim@ietfa.amsl.com>; Tue, 4 Aug 2020 05:06:03 -0700 (PDT)
Received: from smtp47.i.mail.ru (smtp47.i.mail.ru [94.100.177.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2334A3A0A4F for <scim@ietf.org>; Tue, 4 Aug 2020 05:06:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:From:To; bh=zVg2GnKnck55kzm2ernj7cAnpLZ3m8maDKH2KdBhw4U=; b=WnNohjRjL7bC8khpx83n3YsLi5hZr9/dpFVnrD8b+ROzhF0JbZWop7JYXqaXImKJuTWWD6GoT7GNW8A+R9Ky8RWpJZpYB92rs2FZCzwIef6VHDjVS7YV9lbQbznC+L1EyWQQYlPbQVu6eHl6V5dNtudGyBGSd6AYe4zeqYY9XDA=;
Received: by smtp47.i.mail.ru with esmtpa (envelope-from <tangui.lepense@mail.ru>) id 1k2vhg-0006fp-Qg for scim@ietf.org; Tue, 04 Aug 2020 15:06:01 +0300
To: scim@ietf.org
From: Tangui Le Pense <tangui.lepense@mail.ru>
Message-ID: <7edb0743-aa25-106d-2627-8619a7dba446@mail.ru>
Date: Tue, 4 Aug 2020 15:06:00 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Authentication-Results: smtp47.i.mail.ru; auth=pass smtp.auth=tangui.lepense@mail.ru smtp.mailfrom=tangui.lepense@mail.ru
X-7564579A: 646B95376F6C166E
X-77F55803: 4F1203BC0FB41BD9F6142ABD4516DDC533B49C9C6050063227CB9506C76185B9182A05F538085040667F5F1A367C049EF53E30AFCFC6D28FB0A7934F756DDEAF4C4BC2C1C4D8807A
X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE72AC9FB60380F23AEEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006375A514678F9DF65078638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FCB999E7E23EECA86D5A202B6D671E303272F355FAA22B0455389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0A3E989B1926288338941B15DA834481FCF19DD082D7633A0E7DDDDC251EA7DABA471835C12D1D977725E5C173C3A84C3643C8550F8485502117882F4460429728AD0CFFFB425014E09623437467D3AE276E601842F6C81A19E625A9149C048EE7532CA1512B819810A5971FBB7557E96D8FC6C240DEA76429449624AB7ADAF37B2D370F7B14D4BC40A6AB1C7CE11FEE33775554D4E35D8F5AD7EC71F1DB88427C4224003CC8364767A15B7713DBEF166A7F4EDE966BC389F9E8FC8737B5C2249066298569814354B089D37D7C0E48F6CCF19DD082D7633A0E7DDDDC251EA7DABAAAE862A0553A39223F8577A6DFFEA7C33389216BB544DE543847C11F186F3C5E7DDDDC251EA7DABCC89B49CDF41148FBC2A4A7A8370ED8B3C9F3DD0FB1AF5EB4E70A05D1297E1BBCB5012B2E24CD356
X-C8649E89: E759685DDA8069D8CC2EBA766CDF6886284EF926C35B02B369564A702495BB6855B84F4C62AE5C43
X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojaxgiHk2tpiwZznRr76Hupw==
X-Mailru-Sender: 583F1D7ACE8F49BD9992EFD99BFCA8258C7F1F96F909644386591BBE636FC05825CDE588AC211E4BA5D2D6C63D114D6383AFC63A7763B797302201EBD47025992073CDDE12DEC8CD6F486DAF1ACEF02CC676CB43868BEEFB8FF63FEAB625EE02EAB4BC95F72C04283CDA0F3B3F5B9367
X-Mras: Ok
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/tOR5LYYoxkVRfQqFQ-IUh3vYOX8>
Subject: [scim] RFC7644: add operation for PATCH question
X-BeenThere: scim@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Simple Cloud Identity Management BOF <scim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/scim>, <mailto:scim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/scim/>
List-Post: <mailto:scim@ietf.org>
List-Help: <mailto:scim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/scim>, <mailto:scim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Aug 2020 12:06:06 -0000

Hello,

RFC7644 states in "3.5.2.1.  Add Operation" that:

    The operation MUST contain a "value" member whose content specifies
    the value to be added.  The value MAY be a quoted value, or it may be
    a JSON object containing the sub-attributes of the complex attribute
    specified in the operation's "path".

However, in the first example the value is a list, neither a quoted 
value nor a JSON object:

    { "schemas":
       ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
      "Operations":[
        {
         "op":"add",
         "path":"members",
         "value":[
          {
            "display": "Babs Jensen",
            "$ref":
    "https://example.com/v2/Users/2819c223...413861904646",
            "value": "2819c223-7f76-453a-919d-413861904646"
          }
         ]
        }
      ]
    }

(The example also appears in "3.5.2.  Modifying with PATCH".)

Can you please provide guidance about this? If lists are actually 
allowed, how to handle it?

Also, it's not clear what happens if there's a filter in the path 
element. It's probably not allowed for adding (only for replacing and 
removing) but it is not stated in the specification.

Regards,

-- 

Tangui