Re: [scim] Clarification on body request for DELETE

Kelly Grizzle <kelly.grizzle@sailpoint.com> Wed, 27 March 2013 18:10 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 4AF5721F9289 for <scim@ietfa.amsl.com>; Wed, 27 Mar 2013 11:10:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[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 oF3VAU-8Oa7K for <scim@ietfa.amsl.com>; Wed, 27 Mar 2013 11:10:43 -0700 (PDT)
Received: from db8outboundpool.messaging.microsoft.com (mail-db8lp0184.outbound.messaging.microsoft.com [213.199.154.184]) by ietfa.amsl.com (Postfix) with ESMTP id 9749921F9258 for <scim@ietf.org>; Wed, 27 Mar 2013 11:10:39 -0700 (PDT)
Received: from mail135-db8-R.bigfish.com (10.174.8.234) by DB8EHSOBE017.bigfish.com (10.174.4.80) with Microsoft SMTP Server id 14.1.225.23; Wed, 27 Mar 2013 18:10:35 +0000
Received: from mail135-db8 (localhost [127.0.0.1]) by mail135-db8-R.bigfish.com (Postfix) with ESMTP id F2BBA18012B; Wed, 27 Mar 2013 18:10:34 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:132.245.1.133; KIP:(null); UIP:(null); IPV:NLI; H:BLUPRD0412HT001.namprd04.prod.outlook.com; RD:none; EFVD:NLI
X-SpamScore: -22
X-BigFish: PS-22(zz9371Ic85fh4015Izz1f42h1fc6h1ee6h1de0h1202h1e76h1d1ah1d2ahzz1033IL17326ah18c673h8275bh8275dhz31h2a8h668h839hd25hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1bceh1155h)
Received-SPF: softfail (mail135-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=BLUPRD0412HT001.namprd04.prod.outlook.com ; .outlook.com ;
Received: from mail135-db8 (localhost.localdomain [127.0.0.1]) by mail135-db8 (MessageSwitch) id 1364407832800872_18459; Wed, 27 Mar 2013 18:10:32 +0000 (UTC)
Received: from DB8EHSMHS015.bigfish.com (unknown [10.174.8.241]) by mail135-db8.bigfish.com (Postfix) with ESMTP id BD9176004A; Wed, 27 Mar 2013 18:10:32 +0000 (UTC)
Received: from BLUPRD0412HT001.namprd04.prod.outlook.com (132.245.1.133) by DB8EHSMHS015.bigfish.com (10.174.4.25) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 27 Mar 2013 18:10:31 +0000
Received: from BLUPRD0412MB643.namprd04.prod.outlook.com ([169.254.4.165]) by BLUPRD0412HT001.namprd04.prod.outlook.com ([10.255.214.162]) with mapi id 14.16.0275.006; Wed, 27 Mar 2013 18:10:28 +0000
From: Kelly Grizzle <kelly.grizzle@sailpoint.com>
To: Alexandre Santos <asantos@pingidentity.com>, "scim@ietf.org" <scim@ietf.org>
Thread-Topic: [scim] Clarification on body request for DELETE
Thread-Index: AQHOKwTvu+Y5Y4yD5EuVkmnqyAXIcZi51gWQ
Date: Wed, 27 Mar 2013 18:10:28 +0000
Message-ID: <56C3C758F9D6534CA3778EAA1E0C34375C3AD5F3@BLUPRD0412MB643.namprd04.prod.outlook.com>
References: <CAPx6tN7x1MS+W=rbXF1c9p2qepJN3pco+h6MQYXmGHJakF+3Vw@mail.gmail.com>
In-Reply-To: <CAPx6tN7x1MS+W=rbXF1c9p2qepJN3pco+h6MQYXmGHJakF+3Vw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-vipre-scanned: 12E289DA003FD812E28B27
x-originating-ip: [173.226.147.242]
Content-Type: multipart/alternative; boundary="_000_56C3C758F9D6534CA3778EAA1E0C34375C3AD5F3BLUPRD0412MB643_"
MIME-Version: 1.0
X-OriginatorOrg: sailpoint.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: Wed, 27 Mar 2013 18:10:45 -0000

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] On Behalf Of Alexandre Santos
Sent: Wednesday, March 27, 2013 11:04 AM
To: 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