jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: AW: Webdav SearchMethod and xpath query
Date Sat, 30 Dec 2006 13:23:23 GMT
Darren Hartford schrieb:
> All I needed was for someone to say "do not wrap the queries with
> searchrequest or xpath tags".
> 
>> String jackrabbitquery=
>> "<d:searchrequest xmlns:d=\"DAV\" 
>> dcr:=\"http://www.day.com/jcr/webdav/1.0\">" + 
>> "<dcr:xpath>//sv:node[@sv:name='jcr:root']</dcr:xpath>" + 
>> "</d:searchrequest>"; ....
> 
> Should have been just:
> String jackrabbitquery="//sv:node[@sv:name='jcr:root']";
> 
> 
> This also goes for the SQL queries as well when using the Jackrabbit
> webdav lib.
> 
> Couple months down the drain - hopefully no one else will make the same
> mistake!

So what goes over the wire in this case? I have the nagging feeling that 
the SEARCH method implementation in Jackrabbit doesn't conform to the 
SEARCH specification, and we really should fix that before too many 
people start using it that way...

Best regards, Julian

Mime
View raw message