[CalendarServer-dev] Write Locks and Unmapped URLs

Cyrus Daboo cdaboo at apple.com
Mon Apr 7 12:59:42 PDT 2008


Hi Michael,

--On April 7, 2008 9:54:38 PM +0200 Michael Rasmussen <mir at datanom.net> 
wrote:

> According to RFC4918 (June 2007) Adding a calendar resource could cause
> a lost-update so clients are advised to use on of the following scheme:
> 1) If lock is supported request a lock on and Unmapped URL
> 2) If lock is not supported use the header If-None-Match (RFC2616)
>
> As I see it using If-None-Match header is more flexible and requires
> less from both client and server. My question is then: Are there any
> added benefit from using a Lock on and Unmapped URL if the server
> supports locking or should I use If-None-Match header anyway?

If-None-Match is probably best right now. I think LOCK is more useful when 
you need to make multiple updates and ensure those are consistent.

-- 
Cyrus Daboo



More information about the calendarserver-dev mailing list