[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using Link header in HTTP 4xx response
- To: "Brian Smith" <brian@xxxxxxxxxxxxxx>
- Subject: Re: Using Link header in HTTP 4xx response
- From: "Teo Hui Ming" <teohuiming.work@xxxxxxxxx>
- Date: Thu, 24 Apr 2008 09:28:09 +0800
- Cc: "atom-protocol Protocol" <atom-protocol@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=DLA3zjatrbxHo9sdj3HveImFS7DANMvHw+ywWNwCK7w=; b=xpHy+GpvzDHV0GtbttuRFtQIAmhBrNCvSe3wiD3DhwAdvMNEDNmXc7yrqGxzzuR/2VkM3UpquO49Ab/OkEQBL7MnHNscTVivYFYUAD1kNXTbvDxoMldHf3XvzAQQbS1ybfJ9gPdzGe3LmCL7epgBRx06vv3H8abHwpLfr6pMupw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OPGBf3BmuXF72oypdi7jJyBA/e5dWAoARYvPFH3rXGrh6xs11YXgNK4jwx55005igF0rqAqIL7jseh9m6p1+XA8AgJ60raZi8n2cp7F6IXOD6V/UQGv4ZoL82q4bKvBwK88hzCW6Ko6AVEo6r5EE9A75fvXLlvvki2zrWvrv7H4=
- In-reply-to: <>
- List-archive: <http://www.imc.org/atom-protocol/mail-archive/>
- List-id: <atom-protocol.imc.org>
- List-unsubscribe: <mailto:atom-protocol-request@imc.org?body=unsubscribe>
- References: <73ec599d0804222317s4e2818c0k633041bb6f13797c@xxxxxxxxxxxxxx> <>
- Sender: owner-atom-protocol@xxxxxxxxxxxx
On Thu, Apr 24, 2008 at 5:04 AM, Brian Smith <brian@xxxxxxxxxxxxxx> wrote:
> It so happens that I am also working on an AtomPub-based bookmarking system, which works a lot like Google Bookmarks. Is yours similar to Google Bookmarks too?
Mine is just for personal leisure, not yet implemented. :-) I model it
after del.icio.us: 3 collections (bookmarks, tags, bundles), bookmark
collection has a 'search' link to OpenSearch doc, and 'current' link
to Subscription feed.
> How are you marking up your bookmarks in Atom?
Google Bookmark has similar input fields as del.icio.us's:
title - entry/title[@type='text']
notes - entry/summary
link - entry/link[@rel='alternate']
tags - entry/category/@term
private flag - entry/app:control/app:draft
> I am currently using the Google Notebooks encoding, but I want to switch to another one that works better for maintaining an offline cache of bookmarked pages.
any problem in existing Google Notebooks encoding?
> First of all, I think that it should be quite rare for the client to try to POST a duplicate bookmark. If the bookmark already exists when the user initiates the bookmarking process, then the client should let the user edit the existing bookmark, instead of attempting to create a new one. The only time the client will get to the POST step is if the bookmark didn't exist at the time the client searched for it.
>
> There is the (slight) possibility of some kind of editing conflict. But, it will be so rare that there is no reason to optimize for that case. If you get a 409 Conflict, just search for the existing bookmark in a separate request, and then do whatever conflict resolution you would normally.
Another case is when client retry a POST after a network/server
hiccup. I will consider your option.
Thanks,
--
Teo Hui Ming