You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Marco Ferretti <ma...@gmail.com> on 2005/05/30 18:45:24 UTC
DASL order by
Hi all ,
I have tried to do an "order by" basing my DASL search query on the example
found @greenbytes
( http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html#rfc.section.5.2.1 )
My query has to look from the root and display all the resources found,
ordered by resourcetype and dysplayname.
Now it seems like the second order tag is not considered; in fact given the
tree
/slide
/actions
/files/
/dddd/
/documents/
/dossiers/
DAVExplorer.jar
DAVExplorer.sh
DAVExplorerSSL.bat
/notification/
/history
...
and the query
<d:searchrequest xmlns:d="DAV:">
<d:basicsearch>
<d:select>
<d:allprop/>
</d:select>
<d:from>
<d:scope>
<d:href></d:href>
<d:depth>infinity</d:depth>
</d:scope>
</d:from>
<d:orderby>
<d:order>
<d:prop><d:resourcetype/></d:prop>
<d:ascending/>
</d:order>
<d:order>
<d:prop><d:displayname/></d:prop>
<d:ascending/>
</d:order>
</d:orderby>
</d:basicsearch>
</d:searchrequest>
I recieve the output :
DAVExplorer.jar
DAVExplorer.sh
DAVExplorerSSL.bat
/dossiers/
/notification/
/dddd/
/documents/
if you remove the latter order tag :
<d:order>
<d:prop><d:displayname/></d:prop>
<d:ascending/>
</d:order>
the result is the same, while if I invert the 2 order tag I get the result
/dddd/
/documents/
/notification/
DAVExplorer.sh
/dossiers/
DAVExplorerSSL.bat
DAVExplorer.jar
If look at the tree with DAVExplorer I don't see anything in the Display
column for any resource (yes I thought that it was a problem of property
too) .
I have tested this behaviour on slide 2.1 server only ( the one bundled with
tomcat ) as at the moment I can't compare it with anyother server .
Any help would be appreciated
TIA
Marco
--
It was Penguin lust... at its ugliest.
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org