Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of getlastmodified and ordering #3815

Closed
mario opened this issue Mar 13, 2017 · 1 comment
Closed

Usage of getlastmodified and ordering #3815

mario opened this issue Mar 13, 2017 · 1 comment

Comments

@mario
Copy link
Contributor

mario commented Mar 13, 2017

curl -u mario:bla -X SEARCH http:/bla/nextcloud/remote.php/dav/files/mario/ --data '<?xml version="1.0" encoding="UTF-8"?><d:searchrequest xmlns:d="DAV:" xmlns:oc="http://nextcloud.com/ns"><d:basicsearch><d:select><d:prop><d:displayname/><d:getcontenttype/><d:resourcetype/><d:getcontentlength/><d:getlastmodified/><d:creationdate/><d:getetag/><d:quota-used-bytes/><d:quota-available-bytes/><oc:permissions xmlns:oc="http://owncloud.org/ns"/><oc:id xmlns:oc="http://owncloud.org/ns"/><oc:size xmlns:oc="http://owncloud.org/ns"/><oc:favorite xmlns:oc="http://owncloud.org/ns"/></d:prop></d:select><d:from><d:scope><d:href>/files/mario</d:href><d:depth>infinity</d:depth></d:scope></d:from><d:where><d:gt><d:prop><d:getlastmodifed/></d:prop><d:literal>2017-03-10T22:06:30Z</d:literal></d:gt></d:where><d:orderby><d:order><d:prop><d:getlastmodified/></d:prop><d:descending/></d:order></d:orderby></d:basicsearch></d:searchrequest>'

I can't seem to get this to work. Two things:

  1. Using getlastmodified I want to get files modified in the last 7 days
  2. Orderby doesn't seem to work (aka errors out) no matter what query I use

Can you please clarify? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants