-
If I try to lock an existing directory, I cannot add a file to it. I should be able to if I am the lock owner. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Test addition for LockTest.java:
|
Beta Was this translation helpful? Give feedback.
-
The test above fails when trying to add a file to a locked dir:
|
Beta Was this translation helpful? Give feedback.
-
Actually, the stacktrace above is a secondary exception that happens on clean-up. This is the original exception:
|
Beta Was this translation helpful? Give feedback.
-
See also #248. |
Beta Was this translation helpful? Give feedback.
-
Hey it's an old thread but I just had to do the same thing and I found out how by reading some of the webdav RFCs : For the put method you can do it by adding a If Http header like this :
For the patch method, you'll have to modify the lib to add custom header and do the same thing as put is doing (but with HttpPropPatch instead of HttpPut). |
Beta Was this translation helpful? Give feedback.
-
@Ichicon Thanks for the information. =) |
Beta Was this translation helpful? Give feedback.
Hey it's an old thread but I just had to do the same thing and I found out how by reading some of the webdav RFCs :
For the put method you can do it by adding a If Http header like this :
For the patch method, you'll have to modify the lib to add custom header and do the same thing as put is doing (but with HttpPropPatch instead of HttpPut).