Nextcloud version (20.4):
Operating system and version (Ubuntu 20.04):
Apache version (Apache 2.4.41):
PHP version (7.4):
Hey all, been trying to write a program to identify faces and add tags of that person to photos. I can run PROPFIND requests without issue, as well as GET, PUT, DELETE. However when I run a REPORT via curl, I get a dav exception that Report is not supported. The command I’m running is trying to return a list of files with a certain tag:
PROPFIND does work in this instance, however it returns every file in the folder. PROPFIND just ignores the filtering which is what I’m hinging upon. I had pieced together the REPORT request from OwnCloud’s Tags API docs because Nextcloud’s docs were lacking in this instance.
Yes, I knew I could set tags by the Dav API, just was wanting a way to search files and only return those with a certain tag. In the first link you posted, I attempted a different REPORT command, a copy/paste of what’s written in the GitHub issue:
You can also list favorites in a more “DAV” way using
Which will return the same XML format a when doing a PROPFIND and supports requesting properties in the same way as a PROPFIND by adding a <d:prop/> element to the request.
This returned the same error as before, REPORT not supported.
At this point I’m leaning towards a miss-configuration with DAV on my side, though I’m not sure exactly where. I’ll start combing through the docs on github and open an issue there if I cannot find exactly what I’m looking for.
I have resolved the issue, though I could have sworn I attempted this before and that’s how I got stared on this rabbit hole… The trick was to replace the opening <d:propfind> brackets with <oc:filter-files>
My request now looks like: