-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbugfeature: dav
Description
While doing this:
<?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/test</d:href>
<d:depth>infinity</d:depth>
</d:scope>
</d:from>
<d:where>
<d:like>
<d:prop>
<d:getcontenttype />
</d:prop>
<d:literal>application/pdf</d:literal>
</d:like>
</d:where>
<d:orderby />
</d:basicsearch>
</d:searchrequest>
I do get this:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Doctrine\DBAL\Exception\DriverException</s:exception>
<s:message>An exception occurred while executing 'SELECT `fileid`, `storage`, `path`, `parent`, `name`, `mimetype`,
`mimepart`, `size`, `mtime`, `storage_mtime`, `encrypted`, `etag`, `permissions`, `checksum` FROM `oc_filecache`
`file` WHERE (`storage` = ?) AND (`mimetype` COLLATE UTF8_general_ci LIKE ?)' with params [9,
"application\/pdf"]:
SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8_general_ci' is not valid for CHARACTER
SET 'latin1'
</s:message>
</d:error>
If I change
<d:literal>application/pdf</d:literal>
to
<d:literal>application/%</d:literal>
I do get a result.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbugfeature: dav