W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > January to March 1999

Re: How can I do conditional PROPPATCH....

From: Greg Stein <gstein@lyra.org>
Date: Wed, 17 Feb 1999 18:26:11 -0800
Message-ID: <36CB7A43.4943144F@lyra.org>
To: Imran Khan <imran1233@yahoo.com>
CC: w3c-dist-auth@w3.org
Imran Khan wrote:
> 
> Is there an existing way to set/remove properties based on the fact
> that certain conditions are met in WebDAV or DASL?? I looked at the
> existing draft of DASL and it seems to be only query (SELECT), no
> INSERT or UPDATE. Any guidance would be appreciated.

Not that I know of. You'll need two round trips (at least) for that.

It really depends on how "atomic" you need to be. You can issue a SEARCH
followed by a PROPPATCH. If you need a true atomic operation, then you
can LOCK, SEARCH, (test), PROPPATCH, UNLOCK.

There are also funny things you can do with the If: header, but I'm not
really clear on how it can be used in situations like this.

Cheers,
-g

--
Greg Stein, http://www.lyra.org/
Received on Wednesday, 17 February 1999 21:27:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:43:49 GMT