Did anyone get the SEARCH “call” working with WebDAV.
I’ve tried all the different endpoints I can think of and using just about any format of the request I can think of, but I still get 500 errors. I saw a discussion somewhere about the documentation not being correct about the URL/URI, etc. but that it had since been fixed.
The actual data I send along with the request looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<d:searchrequest xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
<d:basicsearch>
<d:select>
<d:prop>
<oc:fileid/>
<d:displayname/>
<d:getcontenttype/>
</d:prop>
</d:select>
<d:from>
<d:scope>
<d:href>/files</d:href>
<d:depth>infinity</d:depth>
</d:scope>
</d:from>
<d:where>
<d:like>
<d:literal>Next%</d:literal>
</d:like>
</d:where>
</d:basicsearch>
</d:searchrequest>
I’ve tried using <d:href>/files</user/d:href> as well, but with the same result.
I’m obviously doing something wrong, but what?
-joho