Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The evaluation of the WebDAV If header seems to lack Etag checks. For instance, this test case:
public void testPutIfEtag() throws HttpException, IOException, DavException, URISyntaxException {
String testuri = this.root + "iftest";
int status;
try
finally
{ DeleteMethod delete = new DeleteMethod(testuri); status = this.client.executeMethod(delete); assertTrue("status: " + status, status == 200 || status == 204 || status == 404); }}
fails, as the PUT request gets executed, although it should have been rejected with Precondition Failed.