Re: [scim] RFC7644: add operation for PATCH question

Tangui Le Pense <tangui.lepense@mail.ru> Tue, 04 August 2020 17:40 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 E2B093A0DC5 for <scim@ietfa.amsl.com>; Tue, 4 Aug 2020 10:40:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Level:
X-Spam-Status: No, score=-3.048 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, NICE_REPLY_A=-0.949, SPF_PASS=-0.001, URIBL_BLOCKED=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 8ZlrJDya3Puj for <scim@ietfa.amsl.com>; Tue, 4 Aug 2020 10:40:21 -0700 (PDT)
Received: from smtp54.i.mail.ru (smtp54.i.mail.ru [217.69.128.34]) (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 9948B3A0DDE for <scim@ietf.org>; Tue, 4 Aug 2020 10:40:18 -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:In-Reply-To:MIME-Version:Date:Message-ID:References:To:From:Subject; bh=EKTf2IqCfLHssjO21p6pKJHYCIuhL10jnAaHj+t7vDY=; b=cmUzqDQUfoBPHEA7jM9AYRy8TNVDVfKiHNhXtna8t5Wo5b4MdORSHCAGPsraZP8LSFcIsPacnVHyvTCOqDmJLEQTso9ZyNuPSnHUwUyzjP2R0hksJwcJ79lGWy4ZRkxVPi8/SZ/dpivqMDqfdIImxAF77rUrQK3miF1LW9W/618=;
Received: by smtp54.i.mail.ru with esmtpa (envelope-from <tangui.lepense@mail.ru>) id 1k30vA-0008V1-73 for scim@ietf.org; Tue, 04 Aug 2020 20:40:16 +0300
From: Tangui Le Pense <tangui.lepense@mail.ru>
To: scim@ietf.org
References: <7edb0743-aa25-106d-2627-8619a7dba446@mail.ru>
Message-ID: <0b209f8b-cdcd-918e-6ccd-82c38b750aad@mail.ru>
Date: Tue, 4 Aug 2020 20:40:15 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <7edb0743-aa25-106d-2627-8619a7dba446@mail.ru>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Authentication-Results: smtp54.i.mail.ru; auth=pass smtp.auth=tangui.lepense@mail.ru smtp.mailfrom=tangui.lepense@mail.ru
X-7564579A: B8F34718100C35BD
X-77F55803: 4F1203BC0FB41BD9F6142ABD4516DDC54D9549387443151A4C427679719D3E33182A05F53808504015636BBCB7A2E34DEA548010D685A69CEC9D7A4931EB18E60B1A230D8EF6D7F0
X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A0175C48BD57B26BC2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE7BAE5222749FC90208F08D7030A58E5AD6BA297DBC24807EAA9D420A4CFB5DD3EA4E0ACE553D87AC37F5C4EC3872F2DE8ADE7667AABD2F12D8941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F446042972877693876707352033AC447995A7AD182CC0D3CB04F14752D2E47CDBA5A96583A67CD397AD5B4748AD7EC71F1DB884274AD6D5ED66289B5278DA827A17800CE7529CEE49F4CD7DA5D32BA5DBAC0009BE395957E7521B51C2E7C897E814753C0B090A508E0FED62991661749BA6B977352A0BF37FED346F29CD04E86FAF290E2DDA63EEEA5E5E9D65089D37D7C0E48F6CA18204E546F3947CDD9D78FC36703085CE5475246E174218C8A9BA7A39EFB7666BA297DBC24807EA089D37D7C0E48F6C8AA50765F790063723E6C16DD8DD76DAEFF80C71ABB335746BA297DBC24807EA27F269C8F02392CDC58410348177836EABEDDA51113D120200306258E7E6ABB4E4A6367B16DE6309
X-C8649E89: FC90F548B7376D8CD154175FC3CFF7A70C0CAC3A62864E55B3A8F3C6CE899AEE71E01576B552B460
X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojaxgiHk2tpixeHrdIwhrI/w==
X-Mailru-Sender: 583F1D7ACE8F49BD9992EFD99BFCA825DFD50429B3C562E6B35A70D3CEC26550EDFCE13AB0BCBCA8A5D2D6C63D114D6383AFC63A7763B797302201EBD47025992073CDDE12DEC8CD6F486DAF1ACEF02CC676CB43868BEEFB8FF63FEAB625EE02EAB4BC95F72C04283CDA0F3B3F5B9367
X-Mras: Ok
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/9m-383zYqUaC7wERea5zdNA7F_0>
Subject: Re: [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 17:40:24 -0000

Hello,

Another inconsistency in the same "3.5.2.1.  Add Operation". The spec says:

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 the second example of the section is:

    {
      "schemas":
        ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
      "Operations":[{
        "op":"add",
        "value":{
          "emails":[
            {
              "value":"babs@jensen.org",
              "type":"home"
            }
          ],
          "nickname":"Babs"
      }]
    }

in which there is no "path". Maybe I misunderstood the term "quoted 
value", which is not defined anywhere else.

Regards,

-- 

Tangui


04.08.2020 15:06, Tangui Le Pense пишет:
> 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,
>