What makes you think the resource does not get unlocked. Normally, if
you get a 200 response this means the UNLOCK has succeeded. Against
which server are you trying this, Slide, which version?

> Hoops, this is the unlock code:
> 
>    public int unlock(String remoteFile) throws Exception
>    {
>       m_path = checkUri(remoteFile);
> System.out.println(">>"+m_path);
> System.out.println(">>"+m_user);
> System.out.println(">>"+m_davConnection.getUserName());
>       if (m_webdavResource.unlockMethod(m_path, m_user)) {
>          return 1;
>       }
> System.out.println("CODE="+m_webdavResource.getStatusCode());
> 
>       m_errors = m_webdavResource.getStatusMessage();
> 
>       return 0;
>    }
> 
> 
> ---------------------------------------------------------------------------
> Henry Lu
> MSIS                                         phone: (734) 615-6270
> University of Michigan Medical School        fax:   (734) 936-3258
> 
> On Thu, 31 Jul 2003, Ingo Brunberg wrote:
> 
> > Please be a bit more specific about what you are doing and how you are
> > doing it. What code do you use? Can you post a trace of the
> > client-server communication?
> >
> > Regards,
> > Ingo
> >
> > > I followed the example in the slide client source code and tried unlock
> > > many times i always got failed with the following getStatusMessage():
> > >
> > > OK (200)
> > >
> > > I looked the source code in the webdavResource.java, it does check the
> > > code for values between 200 and 300. if the value is  in that range, it
> > > should return true. However, in any case, the file is never unlocked.
> > >
> > > any idea?
> > >
> > >
> > > ---------------------------------------------------------------------------
> > > Henry Lu
> > > MSIS                                         phone: (734) 615-6270
> > > University of Michigan Medical School        fax:   (734) 936-3258


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to