|
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. |
Answered by
Ichicon
Nov 7, 2019
Replies: 6 comments
|
Test addition for LockTest.java: |
0 replies
|
The test above fails when trying to add a file to a locked dir: |
0 replies
|
Actually, the stacktrace above is a secondary exception that happens on clean-up. This is the original exception: |
0 replies
|
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). |
0 replies
Answer selected by
dkocher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).