Fix parsing of {DAV:}contains element

This commit is contained in:
Daniel Kesselberg 2019-11-03 11:34:31 +01:00
commit bef5795c98
3 changed files with 83 additions and 0 deletions

41
tests/complexquery.xml Normal file
View file

@ -0,0 +1,41 @@
<?xml version="1.0"?>
<d:searchrequest xmlns:d="DAV:">
<d:basicsearch>
<d:select>
<d:prop>
<d:getcontentlength/>
</d:prop>
</d:select>
<d:from>
<d:scope>
<d:href>/container1/</d:href>
<d:depth>infinity</d:depth>
</d:scope>
</d:from>
<d:where>
<d:and>
<d:gt>
<d:prop>
<d:getcontentlength/>
</d:prop>
<d:literal>10000</d:literal>
</d:gt>
<d:lt>
<d:prop>
<d:getcontentlength/>
</d:prop>
<d:literal>90000</d:literal>
</d:lt>
<d:contains>Peter Forsberg</d:contains>
</d:and>
</d:where>
<d:orderby>
<d:order>
<d:prop>
<d:getcontentlength/>
</d:prop>
<d:ascending/>
</d:order>
</d:orderby>
</d:basicsearch>
</d:searchrequest>