Re: [rtcweb] Fwd: New Version Notification for draft-uberti-rtcweb-turn-rest-00.txt

Martin Thomson <martin.thomson@gmail.com> Mon, 08 July 2013 21:57 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BF09021F9E3B for <rtcweb@ietfa.amsl.com>; Mon, 8 Jul 2013 14:57:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.416
X-Spam-Level:
X-Spam-Status: No, score=-2.416 tagged_above=-999 required=5 tests=[AWL=0.184, BAYES_00=-2.599, NO_RELAYS=-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 mC1kvw5Jnl-B for <rtcweb@ietfa.amsl.com>; Mon, 8 Jul 2013 14:57:14 -0700 (PDT)
Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) by ietfa.amsl.com (Postfix) with ESMTP id E11F921F9DED for <rtcweb@ietf.org>; Mon, 8 Jul 2013 14:57:10 -0700 (PDT)
Received: by mail-we0-f169.google.com with SMTP id n57so4167884wev.14 for <rtcweb@ietf.org>; Mon, 08 Jul 2013 14:57:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=J/qqY0CP4m+YO4eL9CCmnP9VqdFi2lWbfEpDspbb1OI=; b=TqxpJCb3NsvulN0O2fyus92zRZSuQ15/rDBtN7kDsgHoXoVbMayd/yHyn14F+eqzCZ /cj/6dWxneT2RVd9I10vkyF8ZSZmXfcS2EI1pbsfpKdkBr4kYmZAjAUSHoV0lQwYOjfb p+3XB+946oNcy4ZuBnE8S4v2qEBIKwPuQeeJMFhKEUnk2UXmt0FU9g8efN27ACjhSZ0l AqfPxEcXOyp3ECqdkNJE/UNIFCLfmidgscwi79BGM69im6r+DBM8TbBWUHRn7wHnv4wL TSv9shCFY3gq6yzWR0yYXZtvWxgEPqrjKAY9yRekC/BHeRJgKyPWtdD94b7b6EIt55sl BjaA==
MIME-Version: 1.0
X-Received: by 10.194.77.99 with SMTP id r3mr13423494wjw.5.1373320629980; Mon, 08 Jul 2013 14:57:09 -0700 (PDT)
Received: by 10.194.60.46 with HTTP; Mon, 8 Jul 2013 14:57:09 -0700 (PDT)
In-Reply-To: <51DB3443.6070301@nostrum.com>
References: <20130708041540.7930.93762.idtracker@ietfa.amsl.com> <CALe60zAs-NCJgiiHuFHi1ZEOdp2SB4v2-0AYrxBQ2R_gJ=nLcA@mail.gmail.com> <CAOJ7v-0Vxkf-4j-ZHCisKuORob_cL3ogXoexTFMDMJDEttRbaQ@mail.gmail.com> <51DB3443.6070301@nostrum.com>
Date: Mon, 8 Jul 2013 14:57:09 -0700
Message-ID: <CABkgnnUqpUp7bBjZw9nGi-zJJF4AC61LFmOvKKjZO=qH_1QzrA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Adam Roach <adam@nostrum.com>
Content-Type: text/plain; charset=UTF-8
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Fwd: New Version Notification for draft-uberti-rtcweb-turn-rest-00.txt
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Jul 2013 21:57:15 -0000

On 8 July 2013 14:50, Adam Roach <adam@nostrum.com> wrote:
> I only find one issue in my initial read through the document: why are we
> proposing the use of HTTP POST for stateless, idempotent information
> retrieval? The key benefit of this approach is that it doesn't actually
> create state in the network. That's a much better fit for GET.

That's an interesting question.  From one perspective, this is not
idempotent, nor is it safe.  It creates a new resource: a new
username/password pair with a defined validity.  You could even
identify this "resource" with a URI.  Imagine what a DELETE on that
resource would do...

But it's equally valid to try to pretend otherwise and use GET.  After
all, most servers won't actually be allocating any state for these
things.  And I can't think of an actual, practical use for DELETE, so
that's just a silly feature.

--Martin

p.s., I was going to let this slide, but this design is not RESTful,
no sense in pretending like it is.