From dev-return-20272-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Mon Oct 06 10:50:06 2008 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 85905 invoked from network); 6 Oct 2008 10:50:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Oct 2008 10:50:06 -0000 Received: (qmail 26503 invoked by uid 500); 6 Oct 2008 10:50:04 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 26464 invoked by uid 500); 6 Oct 2008 10:50:04 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 26452 invoked by uid 99); 6 Oct 2008 10:50:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 03:50:04 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 10:49:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C741234C218 for ; Mon, 6 Oct 2008 03:49:44 -0700 (PDT) Message-ID: <265178452.1223290184377.JavaMail.jira@brutus> Date: Mon, 6 Oct 2008 03:49:44 -0700 (PDT) From: "Julian Reschke (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1785) If header checking lacks etag checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org If header checking lacks etag checks ------------------------------------ Key: JCR-1785 URL: https://issues.apache.org/jira/browse/JCR-1785 Project: Jackrabbit Issue Type: Bug Components: jackrabbit-webdav Reporter: Julian Reschke 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 { PutMethod put = new PutMethod(testuri); String condition = "<" + testuri + "> ([" + "\"an-etag-this-testcase-invented\"" + "])"; put.setRequestEntity(new StringRequestEntity("1")); put.setRequestHeader("If", condition); status = this.client.executeMethod(put); assertEquals("status: " + status, 412, status); } 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.