Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNon-admin overview of contacts gives SQL error #3564
Comments
|
I also have the same issue with user with permission filter "monitoring/filter/objects". If you remove the filter then the function works fine. To temporarily fix that, I modified 2 files as below:
Hope this will help. |
|
Hi, Thanks for the report. Could please try the patch in the related PR? @latuannetnam Adding Best, |
|
With this patch I get another error: You cannot define a correlation name 'hc' more than once #0 /usr/share/icingaweb2/library/vendor/Zend/Db/Select.php(373): Zend_Db_Select->_join(String, Array, String, Array, NULL) |
|
@Rolf-Zi Could please share the filter/restriction which is applied here and whether you're using MySQL/MariaDB or PostgreSQL. |
|
@Rolf-Zi I updated the PR. Could you please test it again? |
|
Now it works :-) |
If you view the Overview -> Contacts as a non-admin user it produces a SQL-error with "unknown column".
If you are an admin user this overview works just fine, so the issue is probably related to permissions somehow.
Expected Behavior
As a non admin user I want to see the contacts within my permission group.
Current Behavior
Produces a SQL error:
Possible Solution
Probably a permission issue?
Steps to Reproduce (for bugs)
Use a non-admin user and browse to Overview -> Contacts
Context
Your Environment
icinga2 --version): v.2.9.1-1icinga2 feature list): api checker command graphite ido-mysql livestatus mainlog notification perfdataicinga2 daemon -C): Validated OK