Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D63FDE24 for ; Thu, 22 Nov 2012 12:13:04 +0000 (UTC) Received: (qmail 57252 invoked by uid 500); 22 Nov 2012 12:13:02 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 57003 invoked by uid 500); 22 Nov 2012 12:13:02 -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 56941 invoked by uid 99); 22 Nov 2012 12:13:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 12:13:00 +0000 Date: Thu, 22 Nov 2012 12:12:58 +0000 (UTC) From: "Joel Richard (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <208194085.16669.1353586380005.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (JCR-3461) SQL2 query returns no results because @ in path is ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Joel Richard created JCR-3461: --------------------------------- Summary: SQL2 query returns no results because @ in path is ignored Key: JCR-3461 URL: https://issues.apache.org/jira/browse/JCR-3461 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-jcr-commons Affects Versions: 2.5 Reporter: Joel Richard Priority: Minor If you search for nodes under a given path with ISDESCENDANTNODE and the path contains an @, no results are returned because the @ is removed from the path and then the path cannot be found. The @ gets lost in the org.apache.jackrabbit.commons.query.sql2.Parser#readName method. The reason is that the initialize method assigns the wrong type for @. Probably the problem exists for other special characters as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira