jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren Hartford" <dhartf...@ghsinc.com>
Subject [jcr-server] webdav basicsearch
Date Thu, 13 Jul 2006 14:08:04 GMT
Hey all,
Referencing previous e-mails found at

The SimpleWebdavServlet doesn't understand the searchmethod (it's more
for fs-based browsing it appears, which is fine), while the
JCRWebdavServer does. However, the JCRWebdavServer doesn't quite yet
have the full DASL searching ready it looks like:

I'm using the jakarta Slide/httpclient java code to connect to the
WebDAV server via

When I try to do a DASL search like this:

//I know not all WebDAV servers implement queryschema,
//but the error below didn't even get that far.
String metadata = "<D:searchrequest xmlns:D=\"DAV:\" >" +
"<D:basicsearch>" +
"	<D:select>" +
"		<D:queryschema/>" +
"	</D:select>" +
"<D:from>" +
"           <D:scope>" +
"              <D:href>/</D:href>" +
"               <D:depth>infinity</D:depth>" +
"           </D:scope>" +
"       </D:from>" +
"   </D:basicsearch>" +

I get an error response like this using 
//Do this instead of normal enumeration when 
//get an http 400 error from jackrabbit-server/server.
Enumeration results = smethod.getResponses();

<D:error xmlns:D="DAV:">
<dcr:exception xmlns:dcr="http://www.day.com/jcr/webdav/1.0">
<dcr:message>Unsupported language: basicsearch</dcr:message>

However - on a good note, all my tests with proppatch seem to work
great, just can't test it yet without DASL :-)


View raw message