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

Introduce OCConnectionRequestMethodREPORT to apply oc:filter-rules on DAV requests #14

Closed
SamuAlfageme opened this issue May 16, 2018 · 2 comments

Comments

@SamuAlfageme
Copy link

See description for the REPORT method on https://tools.ietf.org/html/rfc3253#section-3.6

Unlike a resource property, which has a single value, the value of a report can depend on additional information specified in the REPORT request body and in the REPORT request headers.

Some examples we have in ownCloud for this kind of "additional information" are:

Fetch all the user favorites:

<oc:filter-files  xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
    <d:prop>
        <!-- the properties you want to include on the REPORT -->
    </d:prop>
    <oc:filter-rules>
        <oc:favorite>1</oc:favorite>
    </oc:filter-rules>
</oc:filter-files>

Get the files tagged with a Collaborative Tag:

Replace the content of oc:filter-rules above with:

<oc:systemtag>{{ID of the collaborative tag}}</oc:systemtag>

In the future, REPORT might also be adopted for search (ref. owncloud/core#25373)


There's some documentation for this on https://github.com/owncloud/documentation/issues/2950 (specially everything rel. to pagination)

@SamuAlfageme
Copy link
Author

SamuAlfageme commented Jun 18, 2018

In the future, REPORT might also be adopted for search (ref. owncloud/core#25373)

Update: owncloud/core#25373 (comment)

it's happening

@felix-schwarz
Copy link
Collaborator

This is implemented by the SDK at the time of writing.

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

No branches or pull requests

2 participants