Re: [scim] Clarification on body request for DELETE

Kelly Grizzle <kelly.grizzle@sailpoint.com> Thu, 28 March 2013 13:00 UTC

Return-Path: <kelly.grizzle@sailpoint.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 2473621F87A4 for <scim@ietfa.amsl.com>; Thu, 28 Mar 2013 06:00:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.099
X-Spam-Level:
X-Spam-Status: No, score=-3.099 tagged_above=-999 required=5 tests=[AWL=-0.501, BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P8yfrJjfTi1s for <scim@ietfa.amsl.com>; Thu, 28 Mar 2013 06:00:06 -0700 (PDT)
Received: from db8outboundpool.messaging.microsoft.com (mail-db8lp0188.outbound.messaging.microsoft.com [213.199.154.188]) by ietfa.amsl.com (Postfix) with ESMTP id 6EE0621F8765 for <scim@ietf.org>; Thu, 28 Mar 2013 06:00:05 -0700 (PDT)
Received: from mail120-db8-R.bigfish.com (10.174.8.228) by DB8EHSOBE033.bigfish.com (10.174.4.96) with Microsoft SMTP Server id 14.1.225.23; Thu, 28 Mar 2013 13:00:04 +0000
Received: from mail120-db8 (localhost [127.0.0.1]) by mail120-db8-R.bigfish.com (Postfix) with ESMTP id 5389446050F; Thu, 28 Mar 2013 13:00:04 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:132.245.1.133; KIP:(null); UIP:(null); IPV:NLI; H:BLUPRD0412HT002.namprd04.prod.outlook.com; RD:none; EFVD:NLI
X-SpamScore: -19
X-BigFish: PS-19(zz98dI9371I936eIc85fhd799h4015Izz1f42h1fc6h1ee6h1de0h1202h1e76h1d1ah1d2ahzz1033IL17326ah18c673h1954cbh18602eh8275bh8275dh1b8612mz31h2a8h668h839hd25hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1bceh1155h)
Received-SPF: softfail (mail120-db8: transitioning domain of sailpoint.com does not designate 132.245.1.133 as permitted sender) client-ip=132.245.1.133; envelope-from=kelly.grizzle@sailpoint.com; helo=BLUPRD0412HT002.namprd04.prod.outlook.com ; .outlook.com ;
Received: from mail120-db8 (localhost.localdomain [127.0.0.1]) by mail120-db8 (MessageSwitch) id 1364475601633419_10546; Thu, 28 Mar 2013 13:00:01 +0000 (UTC)
Received: from DB8EHSMHS030.bigfish.com (unknown [10.174.8.244]) by mail120-db8.bigfish.com (Postfix) with ESMTP id 9805F8004B; Thu, 28 Mar 2013 13:00:01 +0000 (UTC)
Received: from BLUPRD0412HT002.namprd04.prod.outlook.com (132.245.1.133) by DB8EHSMHS030.bigfish.com (10.174.4.40) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 28 Mar 2013 13:00:00 +0000
Received: from BLUPRD0412MB643.namprd04.prod.outlook.com ([169.254.4.165]) by BLUPRD0412HT002.namprd04.prod.outlook.com ([10.255.214.163]) with mapi id 14.16.0275.006; Thu, 28 Mar 2013 12:59:54 +0000
From: Kelly Grizzle <kelly.grizzle@sailpoint.com>
To: Phil Hunt <phil.hunt@oracle.com>
Thread-Topic: [scim] Clarification on body request for DELETE
Thread-Index: AQHOKwTvu+Y5Y4yD5EuVkmnqyAXIcZi51gWQgAA9rYCAACH/gIAA2+/w
Date: Thu, 28 Mar 2013 12:59:54 +0000
Message-ID: <56C3C758F9D6534CA3778EAA1E0C34375C3ADF05@BLUPRD0412MB643.namprd04.prod.outlook.com>
References: <CAPx6tN7x1MS+W=rbXF1c9p2qepJN3pco+h6MQYXmGHJakF+3Vw@mail.gmail.com> <56C3C758F9D6534CA3778EAA1E0C34375C3AD5F3@BLUPRD0412MB643.namprd04.prod.outlook.com> <FAFB4AAB-09FA-41BB-9824-F59851C5B0FE@oracle.com> <DC2940ED-6864-4673-BF5F-EE4882A3B94B@oracle.com>
In-Reply-To: <DC2940ED-6864-4673-BF5F-EE4882A3B94B@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-vipre-scanned: 16EC9064003FE016EC91B1
x-originating-ip: [72.182.10.254]
Content-Type: multipart/alternative; boundary="_000_56C3C758F9D6534CA3778EAA1E0C34375C3ADF05BLUPRD0412MB643_"
MIME-Version: 1.0
X-OriginatorOrg: sailpoint.com
Cc: "scim@ietf.org" <scim@ietf.org>, Alexandre Santos <asantos@pingidentity.com>
Subject: Re: [scim] Clarification on body request for DELETE
X-BeenThere: scim@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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, 28 Mar 2013 13:00:09 -0000

Phil ... I think the two thoughts you bring up are valid.  The 202 status code should probably be addressed as a part of issue #32, and the suspension vs. deletion could be addressed in issue #15.

From: scim-bounces@ietf.org [mailto:scim-bounces@ietf.org] On Behalf Of Phil Hunt
Sent: Wednesday, March 27, 2013 6:51 PM
To: Kelly Grizzle
Cc: scim@ietf.org; Alexandre Santos
Subject: Re: [scim] Clarification on body request for DELETE

Sorry, by "we" I meant I was discussing with my colleagues at Oracle. I don't want to imply that other members of the WG are in agreement or disagreement. I simply want to concur Oracle identified as an issue needing more discussion.  :-)

Phil

@independentid
www.independentid.com<http://www.independentid.com>
phil.hunt@oracle.com<mailto:phil.hunt@oracle.com>




On 2013-03-27, at 2:48 PM, Phil Hunt wrote:


We've been discussing that 202 should generally be interpreted as, transaction is syntactically valid but pending completion (e.g. an approval workflow). It seems there is a need to do this with all SCIM operations.

Successful immediate completion would be status 200 or potentially 204.  Is there any reason for a SP to indicate for example that an entity wasn't actually deleted, but rather suspended (e.g. because the SP has a tombstone feature to preserve UUIDs)?

Phil

@independentid
www.independentid.com<http://www.independentid.com/>
phil.hunt@oracle.com<mailto:phil.hunt@oracle.com>




On 2013-03-27, at 11:10 AM, Kelly Grizzle wrote:


The SCIM API spec is not entirely clear here.  According to RFC 2616, the DELETE operation should work like this:

   A successful response SHOULD be 200 (OK) if the response includes an
   entity describing the status, 202 (Accepted) if the action has not
   yet been enacted, or 204 (No Content) if the action has been enacted
   but the response does not include an entity.

I can't think of anything interesting for SCIM to return in a response body, so my vote would either be a 200 with an empty response (or just a message) or a 204 with no response body.  Perhaps we should open an issue to clarify this.  Thoughts?

--Kelly

From: scim-bounces@ietf.org<mailto:scim-bounces@ietf.org> [mailto:scim-bounces@ietf.org] On Behalf Of Alexandre Santos
Sent: Wednesday, March 27, 2013 11:04 AM
To: scim@ietf.org<mailto:scim@ietf.org>
Subject: [scim] Clarification on body request for DELETE

The spec for PUT says "3.3.1...  Unless otherwise specified a successful PUT operation returns a 200 OK response code and the entire Resource within the response body"
For POST: "3.1...  the response body MUST contain the newly created Resource."
For DELETES it says "
3.4.  Deleting Resources

Consumers request Resource removal via DELETE. Service Providers MAY choose not to permanently delete the Resource, but MUST return a 404 error code for all operations associated with the previously deleted Id. Service Providers MUST also omit the Resource from future query results. In addition the Service Provider MUST not consider the deleted resource in conflict calculation. For example if a User resource is deleted, a CREATE request for a User resource with the same userName as the previously deleted resource should not fail with a 409 error due to userName conflict.
"

My question is, what (if anything at all) should be returned in the response body as a result of a successful DELETE operation.

Thanks,
Alex Santos


_______________________________________________
scim mailing list
scim@ietf.org<mailto:scim@ietf.org>
https://www.ietf.org/mailman/listinfo/scim

_______________________________________________
scim mailing list
scim@ietf.org<mailto:scim@ietf.org>
https://www.ietf.org/mailman/listinfo/scim