I'm trying to get search results from the REST API (XML). Searching for a term which should return some results ends in a Response with status 200 but Content-Length 0. Searching for a term which should return no results successfully returns an empty entries list. Everything works if json is requested with "Accept: application/json".
{"reqId":"aSzI6Vq4VKh8GVESNjB8","level":0,"time":"2024-03-17T23:49:16+00:00","remoteAddr":"172.18.0.1","user":"mischael","app":"no app in context","method":"GET","url":"/ocs/v2.php/search/providers/files/search?term=helden","message":"Unable to find providerId definition","userAgent":"curl/8.6.0","version":"28.0.3.2","data":{"value":"files"}}
{"reqId":"aSzI6Vq4VKh8GVESNjB8","level":0,"time":"2024-03-17T23:49:16+00:00","remoteAddr":"172.18.0.1","user":"mischael","app":"no app in context","method":"GET","url":"/ocs/v2.php/search/providers/files/search?term=helden","message":"Unable to find _route definition","userAgent":"curl/8.6.0","version":"28.0.3.2","data":{"value":"ocs.core.UnifiedSearch.search"}}
{"reqId":"aSzI6Vq4VKh8GVESNjB8","level":3,"time":"2024-03-17T23:49:17+00:00","remoteAddr":"172.18.0.1","user":"mischael","app":"PHP","method":"GET","url":"/ocs/v2.php/search/providers/files/search?term=helden","message":"TypeError: XMLWriter::writeElement(): Argument #2 ($content) must be of type ?string, OCP\\Search\\SearchResultEntry given at /var/www/html/lib/private/AppFramework/OCS/BaseResponse.php#163","userAgent":"curl/8.6.0","version":"28.0.3.2","data":{"app":"PHP"}}
⚠️ This issue respects the following points: ⚠️
Bug description
I'm trying to get search results from the REST API (XML). Searching for a term which should return some results ends in a Response with status 200 but Content-Length 0. Searching for a term which should return no results successfully returns an empty entries list. Everything works if json is requested with "Accept: application/json".
Steps to reproduce
Expected behavior
Get a list of files containing the word "helden"
Installation method
Community Docker image
Nextcloud Server version
28
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response