Hi folks,
I'm trying to get a list of all locked docs through a DASL query on the
repo. Using PROPFIND, and the following query:
<d:propfind>
<d:prop><d:lockdiscovery/></d:prop>
</d:propfind>
... I can pull back lock details for all the docs in the repository, but
it's slow.
I don't care about documents without locks; so I tried:
<d:where>
<d:is-defined>
<d:prop><d:lockdiscovery/></d:prop>
</d:is-defined>
</d:where>
... but of course, all nodes have lockdiscovery defined, it just happens to
have no value on those without locks. So I'm trying to use the
slide-specific extensions to find locked nodes:
<S:propsearch>
<d:prop><d:lockdiscovery/></d:prop>
<d:literal>opaquelocktoken</d:literal>
</S:propsearch>
... but this returns a multistatus body with no content:
<webdav:response target="http://localhost:60000/foo" method="SEARCH">
<webdav:status code="207" msg="Multi Status"/>
<webdav:header name="Date" value="Wed, 09 Jan 2008 11:06:07 GMT"/>
<webdav:header name="Server" value="Jetty/5.1.12 (Windows XP/5.1 x86
java/1.5.0_11"/>
<webdav:header name="Content-Type" value="text/xml; charset="UTF-8""/>
<webdav:header name="Transfer-Encoding" value="chunked"/>
<webdav:body>
<D:multistatus/>
</webdav:body>
</webdav:response>
According to the WebDAV spec, this should return a multistatus response with
the description of the lock [1].
So, my questions:
* is this a bug in my query or in slide or ... ?
* has any hippo found a better way of querying the repo for all locked
documents?
http://asg.andrew.cmu.edu/rfc/rfc2518.html#sec-13.8.1
Thanks,
Andrew.
--
Sourcesense: Making sense of Open Source
Tel: +44 (0)870 741 6658 Fax: +44 (0)700 598 1135
Web: http://www.sourcesense.com/
********************************************
Hippocms-dev: Hippo CMS development public mailinglist