Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 51036 invoked from network); 12 May 2008 15:39:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 May 2008 15:39:13 -0000 Received: (qmail 29148 invoked by uid 500); 12 May 2008 15:39:15 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 29128 invoked by uid 500); 12 May 2008 15:39:15 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 29116 invoked by uid 99); 12 May 2008 15:39:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2008 08:39:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jasnell@gmail.com designates 209.85.132.242 as permitted sender) Received: from [209.85.132.242] (HELO an-out-0708.google.com) (209.85.132.242) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2008 15:38:29 +0000 Received: by an-out-0708.google.com with SMTP id b38so480886ana.83 for ; Mon, 12 May 2008 08:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=hXLdW7xmb5qR9zGEdPRQUN4yYfqfSpG9aIlIvbRMydk=; b=iBeGQUQ9zOIkRntMZSaJgSJES2n14zOGzLOKrTLhfVcbcbxl5TfHxWDOEI7qvVNg0G7eEJCnhsgEQPqYoF1Ig+kBqxwHZ+NdNM8SPNlDiFBRPgHQRP0wKsUFdtLsIm9M9KGoy7e8iNg2NKX2RzK3bX+1WzFNhDoE1GAGXkQSzwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=dk6Gbs71vIevVkyHboTHRvikI9+OH4OAJyXdAP+U/dMsMvqHGAFu0bvLMUhYL6aoEM4oBLzFOTzYI9jb4jnmdmOe0XdfxmvGFOATrlmeGRmsdvADgPz8pCBu9ldbMKBAFGUL/f8HntZeZSAuCMCr8Ns02mmZY50+SEP4z3R1twE= Received: by 10.100.173.9 with SMTP id v9mr8302181ane.150.1210606724672; Mon, 12 May 2008 08:38:44 -0700 (PDT) Received: from ?192.168.2.2? ( [98.224.93.96]) by mx.google.com with ESMTPS id c15sm11707633anc.1.2008.05.12.08.38.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 May 2008 08:38:42 -0700 (PDT) Message-ID: <48286480.7030206@gmail.com> Date: Mon, 12 May 2008 08:38:40 -0700 From: James M Snell User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org Subject: Re: General Question about IDs References: <194589.63601.qm@web39207.mail.mud.yahoo.com> In-Reply-To: <194589.63601.qm@web39207.mail.mud.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org M Harris wrote: > I just answered my own question. The Ids can't be changed by the user (right?) and I think it would be best to do a GET first and then make sure the entry Ids match before pursuing. > Right. - James > M Harris wrote: This is not necessarily about Abdera, but about the Atom Publishing Protocol in general regarding entry Ids. I know there are some people on the mailing list who have developed their sites using Abdera and Atom. Are you storing the Entry Ids in a database or other structure? I was wondering how exactly to handle editing a resource. > > I guess I am wondering how to ensure that the link during an edit of a resource is infact that Entry itself the client is trying to edit. > > Taken from an article online just for reference: > > > PUT /blog/entries/1 HTTP/1.1 > Host: example.org > Content-Type: application/atom+xml; charset=utf-8 > Content-Length: nnnn > If-Match: "/blog/entries/1?1" > If-Unmodified-Since: Sat, 12 Aug 2006 13:40:03 GMT > > > > tag:example.org,2006:/blog/entries/1 > Atom-Powered Robots Run Crazy > > > > > 2006-08-12T13:40:03Z > John > Some different text. > > > > > How should it know that > > /blog/entries/1 > and the entry > > > tag:example.org,2006:/blog/entries/1 > > Mean the same? In this case the Id happens to be the URL of the entry but from what I have read the id does not have to be any part of the URL. If someone were to do a PUT to the same URL but with this ID (2007 instead of 2008) > > tag:example.org,2007:/blog/entries/1 > Does it overwrite the id? > > > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.