Open Monschichi opened 2 years ago
Confirm that issue on 4.8.1 Some scripts are broken.
Confirm on version 3.8.17 too
Could it be that commit 31ae30f30ad71d9e5a1b0cad494b3471a7dd8807 by @ggazzo changed things in a way that some queries do no longer work?
For me searching for customFields e.g. { "customFields.pkey" : { "$eq" : " + "my value"}}
gives a
Invalid query parameter provided: "{ "customFields.pkey" : { "$eq" : " + "10221"}}" [error-invalid-query]
(this still worked on 4.7.2)
and querying for all fields using {"_id": false, "value": false}
(according to https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/query-and-fields-info#query-example) does no longer work too.
Description:
With 4.8.0, at least, the user-list API doesn't work anymore as expected. With 4.7.1 it worked.
Steps to reproduce:
Expected behavior:
response like documented
Actual behavior:
{"success":false,"error":"Invalid query parameter provided: \"{ active: true, type: { $in: ['user', 'bot'] } }\" [error-invalid-query]","errorType":"error-invalid-query","details":{"helperMethod":"parseJsonQuery"}}
Server Setup Information:
Client Setup Information
Additional context
Relevant logs: