Thanks Remy,
It works just fine. I mean LOCK, UNLOCK sequence on a non existing resource.
What is the purpose for Null Resource?
Valeriy
-----Original Message-----
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 8:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Question on LOCK behaviour
> Try to lock an unexisting resource, say "temp_res_a.html":
>
> webdavResource.lockMethod(rootPath + "temp_res_a.html");
>
> and got properties for this URI in the table PROPERTY, a row in LOCKS, and
> OBJECTS on the unexisting resource.
>
> Is it a desired behaviour?
Yes (at least I think so). If a non existing resource is locked, a lock-null
resource should be created. The lock-null resource should be deleted if the
lock is removed. The behavior is specified in the WebDAV spec.
Hopefully, that works fine.
Remy