Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1ADFC9D34 for ; Thu, 24 May 2012 15:16:10 +0000 (UTC) Received: (qmail 82021 invoked by uid 500); 24 May 2012 15:16:10 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 81975 invoked by uid 500); 24 May 2012 15:16:10 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 81967 invoked by uid 99); 24 May 2012 15:16:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 15:16:09 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mueller@adobe.com designates 64.18.1.23 as permitted sender) Received: from [64.18.1.23] (HELO exprod6og109.obsmtp.com) (64.18.1.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 15:15:59 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob109.postini.com ([64.18.5.12]) with SMTP ID DSNKT75QmWzy+FkKmwJrXQBzr1TzdxP94cr2@postini.com; Thu, 24 May 2012 08:15:38 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q4OFDMJ0025749 for ; Thu, 24 May 2012 08:13:23 -0700 (PDT) Received: from nacas01.corp.adobe.com (nacas01.corp.adobe.com [10.8.189.99]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q4OFFYYr021077 for ; Thu, 24 May 2012 08:15:35 -0700 (PDT) Received: from eurcas01.eur.adobe.com (10.128.4.27) by nacas01.corp.adobe.com (10.8.189.99) with Microsoft SMTP Server (TLS) id 8.3.192.1; Thu, 24 May 2012 08:15:33 -0700 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurcas01.eur.adobe.com ([10.128.4.27]) with mapi; Thu, 24 May 2012 16:15:29 +0100 From: Thomas Mueller To: "oak-dev@jackrabbit.apache.org" Date: Thu, 24 May 2012 16:15:24 +0100 Subject: Path and name normalization in the query engine Thread-Topic: Path and name normalization in the query engine Thread-Index: Ac05wA0nPENzuSfjRLiXNMoRAh5m9Q== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.2.120421 acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_CBE41D2C2C796muelleradobecom_" MIME-Version: 1.0 --_000_CBE41D2C2C796muelleradobecom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, The query engine in oak-core needs to normalize paths and names (convert ".= /name" to "name"), for example for the TCK test org.apache.jackrabbit.test.= api.query.qom.NodeNameTest.testURILiteral. I don't see a way to do the norm= alization within oak-jcr. The component that seems to be able to do that is= NamePathMapper. I think there are two options: either add the NamePathMapper as a parameter= to (the oak-core API method) QueryEngine.executeQuery, or add the NamePath= Mapper to (the oak-core interface) ContentSession. But I guess that would m= ean it needs to be added as a parameter to ContentRepository.login, which s= eems to be a bit strange. So I will add it as a parameter to QueryEngine.executeQuery. In the near future, the query engine will also need to evaluate node type i= nformation (also in oak-core). The method executeQuery will get at least on= e additional parameter, so will have 8 parameters in total. One alternative= would be to keep the node type information and name path mapper in Content= Session. But I guess that's not what you guys want to do, right? Regards, Thomas --_000_CBE41D2C2C796muelleradobecom_--