> -----Original Message-----
> From: Carsten Eckelmann [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 11:46 AM
> To: [EMAIL PROTECTED]
> Subject: resource locking
> 
> 
> Hi,
> 
> I want to lock a WebDav resource and later unlock it. First I call
> 
>   webdavResource.lockMethod()
> 
> and when later I want to call
> 
>   webdavResource.unlockMethod()
> 
> it doesn't seem to work. A call to webdavResource.isLocked() will
> still return true after unlock. 

Can you send me a test program ?

> Also there seems to be a timeout for
> this lock, which comes to effect almost 2 hours(!) later. How can I
> reduce this time?

There are several lock methods, some of them have a timeout parameter:
    public boolean lockMethod(String path, String owner, short timeout)
the default timeout is 120 minutes.

> Is there something which I have overlooked? Or is this a bug?

Can you try the command line client from a nightly build?
It has a new "locks" command that displays the locks.
Try:
open http://localhost:8080/mydir
set debug on
locks myfile
lock myfile
locks myfile
unlock myfile
locks myfile

And send me the logging.

> I'm using version Slide 1.0.12, Tomcat 3.2.3, Apache 3.14 with mod_dav
> 1.0.2 on Windows NT. Any help is highly appreciated.
> 
> 
> -- Carsten Eckelmann
> 
> 


Dirk

Reply via email to