Hi Montaser,

from what I understand, Jackrabbit 2.x is supposed to still support XPath, even though XPath is deprecated in JCR 2.0. So this indeed seems to be a regression.

I opened https://issues.apache.org/jira/browse/JCR-3435 where I provided a test case to be added to an existing Jackrabbit JUnit test, reproducing the regression against 2.4.2.

The same test does work in 1.6.5.

Regards,
Jörg

On 13.09.2012 09:41, Montaser Al-Masri wrote:
Hi,
We are currently working on upgrading Jackrabbit from 1.6.5 to 2.4.2 on our
system.
we are facing problems on some XPath queries that used to work on the 1.6.5
perfectly, and now its throws javax.jcr.query.InvalidQueryException
exception on 2.4.2, do Jackrabbit changed the way how its parse the XPath
queries??

the query is:
//programs//*[child::*/@sunday]

on version 1.6.5 returnes:
*0 nodes returned in 1ms*

and on 2.4.2 returnes:
*null for statement: for $v in //programs//*[child::*/@sunday] return $v*

please advice its urgent

Thank You in Advance!
Montaser Almasri



--
*Dipl. inf. Jörg von Frantzius, System Architect*

Email mailto:[email protected]
Phone +49 30 283921-318
Fax +49 30 283921-29

Aperto AG - In der Pianofabrik
Chausseestraße 5, D-10115 Berlin-Mitte
http://www.aperto.de
http://www.facebook.com/aperto
https://www.xing.com/companies/apertoag

HRB 77049, AG Berlin Charlottenburg
Vorstand: Dirk Buddensiek (Vorsitzender), Kai Großmann, Stephan Haagen
Aufsichtsrat: Bernd Hardes (Vorsitzender)

Reply via email to