Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 32689 invoked from network); 18 Sep 2007 13:12:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2007 13:12:07 -0000 Received: (qmail 55772 invoked by uid 500); 18 Sep 2007 13:11:58 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 55750 invoked by uid 500); 18 Sep 2007 13:11:58 -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 55741 invoked by uid 99); 18 Sep 2007 13:11:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 06:11:58 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 13:13:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 85E78714201 for ; Tue, 18 Sep 2007 06:11:43 -0700 (PDT) Message-ID: <20143512.1190121103544.JavaMail.jira@brutus> Date: Tue, 18 Sep 2007 06:11:43 -0700 (PDT) From: "Julian Reschke (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-522) XPath parser too tolerant In-Reply-To: <6703403.1154178673920.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528378 ] Julian Reschke commented on JCR-522: ------------------------------------ Unfortunately there doesn't seem to be a test case checking this. I apologize for breaking this, but the current state of things is clearly not optimal. There are many syntactically valid XPath queries that are neither understood nor rejected by the parser/query builder. The longer these kinds of bugs stay in there, the harder it may become to deploy fixes, once deployed code relies on them. > XPath parser too tolerant > ------------------------- > > Key: JCR-522 > URL: https://issues.apache.org/jira/browse/JCR-522 > Project: Jackrabbit > Issue Type: Bug > Components: query > Affects Versions: 0.9, 1.0, 1.0.1 > Reporter: Julian Reschke > Assignee: Julian Reschke > Priority: Minor > > The XPath parser seems to be too tolerant, in that it accepts expressions Jackrabbit is not designed to deal with, and silently treats them in some other way. > For instance "/a | /b" is accepted and processed as "/a/b". > (As mentioned on the mailing list, there may be other related issues such as unsupported function names that are accepted but shouldn't) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.