[CDNi] Applicability of draft-nottingham-http-problem to CDNI Redirection interface

Ben Niven-Jenkins <ben@niven-jenkins.co.uk> Wed, 26 March 2014 11:48 UTC

Return-Path: <ben@niven-jenkins.co.uk>
X-Original-To: cdni@ietfa.amsl.com
Delivered-To: cdni@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3AA1B1A0310 for <cdni@ietfa.amsl.com>; Wed, 26 Mar 2014 04:48:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.5
X-Spam-Level:
X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5 tests=[BAYES_05=-0.5] autolearn=ham
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 RXJJzEprIAoX for <cdni@ietfa.amsl.com>; Wed, 26 Mar 2014 04:48:10 -0700 (PDT)
Received: from mailex.mailcore.me (mailex.mailcore.me [94.136.40.62]) by ietfa.amsl.com (Postfix) with ESMTP id 3626F1A0307 for <cdni@ietf.org>; Wed, 26 Mar 2014 04:48:09 -0700 (PDT)
Received: from host4.velocix.com ([81.134.152.4] helo=[172.18.0.148]) by smtp04.mailcore.me with esmtpa (Exim 4.80.1) (envelope-from <ben@niven-jenkins.co.uk>) id 1WSmJT-0000U2-08; Wed, 26 Mar 2014 11:48:07 +0000
From: Ben Niven-Jenkins <ben@niven-jenkins.co.uk>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 26 Mar 2014 11:48:04 +0000
Message-Id: <86571176-B0EC-4D80-9D2B-1FC68D469A92@niven-jenkins.co.uk>
To: cdni@ietf.org
Mime-Version: 1.0 (Apple Message framework v1085)
X-Mailer: Apple Mail (2.1085)
X-Mailcore-Auth: 9600544
X-Mailcore-Domain: 172912
Archived-At: http://mailarchive.ietf.org/arch/msg/cdni/4XmMRtvP1hEsUwMO5UoWWiLWMQM
Cc: Mark Nottingham <mnot@mnot.net>
Subject: [CDNi] Applicability of draft-nottingham-http-problem to CDNI Redirection interface
X-BeenThere: cdni@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This list is to discuss issues associated with the Interconnection of Content Delivery Networks \(CDNs\)" <cdni.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cdni>, <mailto:cdni-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/cdni/>
List-Post: <mailto:cdni@ietf.org>
List-Help: <mailto:cdni-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cdni>, <mailto:cdni-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Mar 2014 11:48:16 -0000

CDNIers,
cc'ing Mark Nottingham as the author of draft-nottingham-http-problem in case he has any views.

Previously Francois asked whether we should use draft-nottingham-http-problem to communicate errors for the CDNI Redirection interface (draft-ietf-cdni-redirection).

During IETF89 in London I presented my view that using draft-nottingham-http-problem is not applicable to the CDNI Redirection interface and took an action to follow-up by sending my reasoning to the mailing list.

draft-nottingham-http-problem "defines a "problem detail" as a way to carry machine-readable details of errors in a HTTP response, to avoid the need to invent new error response formats for HTTP APIs."

And it also says "Note that problem details are (naturally) not the only way to convey the details of a problem in HTTP; if the response is still a representation of a resource, for example, it's often preferable to accommodate describing the relevant details in that application’s format.”

In the case of draft-ietf-cdni-redirection we have our own response format for communicating details of the redirection from dCDN to uCDN.

Currently we have defined our own format for errors (aligned with the response format for successful requests) and what we have specified contains all the same fields as specified draft-nottingham-http-problem, with the only significant difference being that draft-nottingham-http-problem uses a Media Type for communicating the error code, whereas draft-ietf-cdni-redirection uses a numeric code.

Having a separate format for errors doesn't seem to make much sense to me, especially as there may be cases where we need to communicate details of a redirection and signal an error within the same response.

Therefore IMO we are in the situation quoted from draft-nottingham-http-problem above, i.e. we already have an application specific format for responses and therefore IMO it is preferable to accommodate errors within our existing response body format rather than trying to leverage a more generic mechanism such as that described in draft-nottingham-http-problem.

Unless anyone feels strongly otherwise, we will continue to define CDNI Redirection interface errors in the application specific format we currently have in draft-ietf-cdni-redirection.

Regards
Ben