Raj Kumar wrote:
> hi,
> I am running the command line webdav client example Slide.java and the
> tomcat server on the server side.
> When a perform a put operation on resource after performing a lock on the
> same resource the operation fails with 423 Locked status.Is this a
> bug.Should not a put operation succeed after a lock on the same resource by
> the same client.
> thanks,
> rajkumar
Works for me...
Try to make a testcase.
Dirk
======================================================
[LOCALHOST] /slide/files/ $ ls
[LOCALHOST] /slide/files/ $
[LOCALHOST] /slide/files/ $
[LOCALHOST] /slide/files/ $ put t.bat test
Uploading 't.bat' to '/slide/files/test': succeeded.
[LOCALHOST] /slide/files/ $ locks test
Server did not return a LockDiscoveryProperty.
OK (200)
[LOCALHOST] /slide/files/ $ lock test
Locking '/slide/files/test': succeeded.
[LOCALHOST] /slide/files/ $ locks test
Locks for /slide/files/test:
------------------------------------------------------------
Exclusive write lock
depth: infinity
owner: /users
timeout: 115
token: opaquelocktoken:faketoken
[LOCALHOST] /slide/files/ $ put k.bat test
Uploading 'k.bat' to '/slide/files/test': succeeded.
[LOCALHOST] /slide/files/ $ locks test
Locks for /slide/files/test:
------------------------------------------------------------
Exclusive write lock
depth: infinity
owner: /users
timeout: 77
token: opaquelocktoken:faketoken
[LOCALHOST] /slide/files/ $ unlock test
Unlocking '/slide/files/test': succeeded.
[LOCALHOST] /slide/files/ $ locks test
Server did not return a LockDiscoveryProperty.
No Content (204)
[LOCALHOST] /slide/files/ $