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:
curl -u user:password -X REPORT http://nextcloud-server-address/remote.php/dav/files/user/Photos --data '<?xml version="1.0" encoding="utf-8"?>
<d:propfind xmlns:d="DAV:"
xmlns:oc="http://owncloud.org/ns"
xmlns:nc="http://nextcloud.org/ns"
xmlns:ocs="http://open-collaboration-services.org/ns">
<d:prop>
<d:getcontentlength />
<d:getcontenttype />
<d:getetag />
<d:getlastmodified />
<d:lockdiscovery />
<d:resourcetype />
<oc:comments-unread />
<oc:favorites />
<oc:fileid />
<oc:owner-display-name />
<oc:permissions />
<oc:share-types />
<oc:size />
<oc:tags />
</d:prop>
<oc:filter-rules>
<oc:systemtag>2</oc:systemtag>
</oc:filter-rules>
</d:propfind>'
Which returns:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\ReportNotSupported</s:exception>
<s:message/>
<d:supported-report/>
</d:error>
The output of Nextcloud log:
Sabre\DAV\Exception\ReportNotSupported:
/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
Sabre\DAV\CorePlugin->httpReport()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 474:
Sabre\DAV\Server->emit()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 251:
Sabre\DAV\Server->invokeMethod()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 319:
Sabre\DAV\Server->start()
/var/www/nextcloud/apps/dav/lib/Server.php - line 332:
Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 167:
require_once("/var/www/ne ... p")