Re: [scim] Filter ABNF Clarifications

Phillip Hunt <phil.hunt@independentid.com> Thu, 13 August 2020 16:27 UTC

Return-Path: <phil.hunt@independentid.com>
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 9BC803A0E63 for <scim@ietfa.amsl.com>; Thu, 13 Aug 2020 09:27:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=independentid-com.20150623.gappssmtp.com
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 0U3cuiAnreJY for <scim@ietfa.amsl.com>; Thu, 13 Aug 2020 09:27:24 -0700 (PDT)
Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4F97D3A0E61 for <scim@ietf.org>; Thu, 13 Aug 2020 09:27:24 -0700 (PDT)
Received: by mail-pj1-x1033.google.com with SMTP id kr4so3018211pjb.2 for <scim@ietf.org>; Thu, 13 Aug 2020 09:27:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=independentid-com.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=vmcloS2cjQaw5x2wHf5iSTWqOL0CSMicPMxPZP35+VU=; b=2OWxMTk9skpOSN74++JCOi5lGuMuNZQlxbOmpN3cx6mOxLhHsQr9jAIXnv6mNKPMX3 znu5sr2XTLSPM47Bt46BLirov5l/JvhAqsAxNWGVvMMVDj0UJR9550ikOuwAbkbfK9ud 8/VoqchCwss5+BbUfUCqPd7NZgyV2egrp1TyCIW60GIToXyN1k+ZMc8fP+/mrEvPVX3p DvN5+DKp5T0GRSpK6aO9DznJOuEJz0wq/4fozKzV+WFrBqEnypv9HohlvqoPBxuJ/X5r WtzofQvD1WDF4weraCMGZ9KcEC+6klMLmSeKmnmq7nOzbWBE1wilr1awpmZgAreTMm+m hEAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=vmcloS2cjQaw5x2wHf5iSTWqOL0CSMicPMxPZP35+VU=; b=UutHrhX3Z5XVejWDY8mnGWyvm3IuJ8h/AO4VXkNi4A63syg18JNtJY5zNJkEkGCrP/ kGJXC7QnyYc7sW7V4mW/b9Q/dHmI4jRDuZ5RPK0Oz9XycAQThbnLGYJc4mvpgvFs6jV1 26nnC9chexig7Npoiiq8w2ClBvX6I9PG1dG9xOD3Xr3ks0NJDbfSGyjllcuJLv6mFUXE 7bEP5UwuGfM3qn3tMCTGPCPLjqeCX+Z2+ZPZpmJGkmH7l5j3jiw4HohFkcoH+ZgiLXUT nSOlDkcsaQ8wjNoQPjvBC8kG0TmClV/e5F3fKPGaHP7A/5qd3y+PV+aXJo6nxn+zH8wf WXpA==
X-Gm-Message-State: AOAM530IGLJOrfdQLhqSy/iURlt2a8pM6B1oWMnZM+psGySwXXFW+fn6 ebg0knTazO7NaYwfhhqdkpW9MOJ8jFc=
X-Google-Smtp-Source: ABdhPJwY+tIiUjquYYFTsSQIazzCKDl0JeiIFfygiJrdWWxiX4DT3cWNLSWSgEnuQg7zvDQVUqvXdg==
X-Received: by 2002:a17:902:9307:: with SMTP id bc7mr4859530plb.213.1597336043398; Thu, 13 Aug 2020 09:27:23 -0700 (PDT)
Received: from ?IPv6:2001:569:7a71:1d00:290d:3ee3:97dc:4668? (node-1w7jr9qrfoxx85d1zllo3oig8.ipv6.telus.net. [2001:569:7a71:1d00:290d:3ee3:97dc:4668]) by smtp.gmail.com with ESMTPSA id q5sm5707490pgv.1.2020.08.13.09.27.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Aug 2020 09:27:22 -0700 (PDT)
Content-Type: multipart/alternative; boundary=Apple-Mail-33887896-8060-4428-AB04-0C22011C1466
Content-Transfer-Encoding: 7bit
From: Phillip Hunt <phil.hunt@independentid.com>
Mime-Version: 1.0 (1.0)
Date: Thu, 13 Aug 2020 09:27:22 -0700
Message-Id: <9D2B20FF-64AB-4F6A-8893-9B2CEEE2D87A@independentid.com>
References: <CAGUsYPz7BYonmr0qXKWPAJFyQd9exV0mNcyZ38RhpsLqpg7Q4w@mail.gmail.com>
Cc: scim@ietf.org
In-Reply-To: <CAGUsYPz7BYonmr0qXKWPAJFyQd9exV0mNcyZ38RhpsLqpg7Q4w@mail.gmail.com>
To: Shelley <randomshelley@gmail.com>
X-Mailer: iPhone Mail (17F80)
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/9Ec6GNOuJTA1RP6bddAgld91w6s>
Subject: Re: [scim] Filter ABNF Clarifications
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: Thu, 13 Aug 2020 16:27:26 -0000

Shelly

The “not” is itself optional to allow bracketing of sub filter expressions. 

(Filter) or not(filter)

Phil

> On Aug 13, 2020, at 8:56 AM, Shelley <randomshelley@gmail.com> wrote:
> 
> 
> While reviewing the SCIM 2.0 filter ABNF syntax [1], I found what appears to be a couple of issues that I wanted to confirm before submitting errata.
> 
> Regarding the "not" filters:
>      FILTER    = attrExp / logExp / valuePath / *1"not" "(" FILTER ")"
> 
>      valFilter = attrExp / logExp / *1"not" "(" valFilter ")"
> Specifically, if I'm not mistaken:
> there should be a space between "not" and "("
> alternatively, the following example [2] should not include a space:
> not (emails co "example.com" or emails.value co "example.org")
> the use of "*1" is not correct
> this effectively makes the entire rule optional
> As such, I think the above filters should be re-written as:
> 
>      FILTER    = attrExp / logExp / valuePath / "not" [SP] "(" FILTER ")"
> 
>      valFilter = attrExp / logExp / "not" [SP] "(" valFilter ")"
> 
> In case any SCIM clients/providers are relying on the existing ABNF which does not define the space, the above syntax makes the space optional.
> 
> Please confirm whether I've misinterpreted anything, otherwise, I will likely report this as errata.
> 
> [1] https://tools.ietf.org/html/rfc7644#page-21
> [2] https://tools.ietf.org/html/rfc7644#page-23
> _______________________________________________
> scim mailing list
> scim@ietf.org
> https://www.ietf.org/mailman/listinfo/scim