You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reporter experienced the following error when using Icinga Director:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?) AND ((allowed_roles IS NULL OR allowed_roles LIKE '%\"Administrators\"%' OR a' at line 1, query was: SELECT director_datalist_entry.entry_name, director_datalist_entry.entry_value FROM director_datalist_entry WHERE (list_id = ?) AND ((allowed_roles IS NULL OR allowed_roles LIKE '%\"Administrators\"%' OR allowed_roles LIKE '%\"nops\"%')) ORDER BY entry_value ASC
As outlined in the second post, $this->getSetting('datalist_id') seems to be empty in their setup, resulting in an invalid query. The reporter's quick fix was by removing the WHERE clause from the query.
I dont think that quick fix is a good idea, as it removes the filtering on director_datalist_entry table - so you are getting all possible datalist entries from the director_datalist_entry table. To me it looks like somehow list_id is not getting populated with the datalist_id.
This is a cross post from the Icinga Community forum:
The reporter experienced the following error when using Icinga Director:
As outlined in the second post,
$this->getSetting('datalist_id')
seems to be empty in their setup, resulting in an invalid query. The reporter's quick fix was by removing theWHERE
clause from the query.icingaweb2-module-director/library/Director/DataType/DataTypeDatalist.php
Lines 98 to 101 in de8fe10
The text was updated successfully, but these errors were encountered: