Erudika / scoold-pro

Cloud-ready Q&A platform for the enterprise (self-hosted, on premise)
https://scoold.com
Other
7 stars 0 forks source link

Error message in docker logs everytime a admin opens a question #66

Closed dittertp closed 6 months ago

dittertp commented 7 months ago

Every time a user with admin privileges opens an existing question, the following error message is displayed in the Docker console.

scoold-1        | 2024-02-08 15:21:54 [ERROR] 400 - 400 - Invalid query string syntax q=properties.spaces:"scooldspace:default" AND ((type:profile AND (name:(@) OR name:(@) OR properties.originalName:(@) OR properties.originalName:(@))) OR (type:user AND email:(@*))) in request GET http://para:8080/v1/search/default?q=properties.spaces%3A%22scooldspace%3Adefault%22+AND+%28%28type%3Aprofile+AND+%28name%3A%28%40%29+OR+name%3A%28%40%29+OR+properties.originalName%3A%28%40%29+OR+properties.originalName%3A%28%40%29%29%29+OR+%28type%3Auser+AND+email%3A%28%40%2A%29%29%29&limit=10&page=1&sort=timestamp&type=&desc=true
albogdano commented 7 months ago

Interesting - apparently the name of the admin is @ which breaks the query syntax. To fix the issue, I will add a line to strip the symbols from the name before constructing the search query.

Thanks!

albogdano commented 6 months ago

Fixed. Will be available in the next version.