Icinga / icinga-web

Icinga Web 1.x, the old new web interface (EOL 31.12.2018)
22 stars 11 forks source link

[dev.icinga.com #10217] Exception with Icinga Web 1.13 - hostgroup matching in admin group area not working? #1364

Closed icinga-migration closed 8 years ago

icinga-migration commented 8 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10217

Created by lehrhardt on 2015-09-25 11:05:14 +00:00

Assignee: (none) Status: Rejected (closed on 2015-10-26 08:32:27 +00:00) Target Version: (none) Last Update: 2015-10-26 08:32:27 +00:00 (in Redmine)

Icinga Version: 2.3.10-1~ppa1~trusty1
Icinga Web Version: 1.13.1-1~ppa1
IDO Version: 2.3.10-1~ppa1~trusty1
OS Version: Ubuntu 14.04 LTS
DB Type: MySQL
DB Version: 5.5.44-0ubuntu0.14.04.1
Browser Version: Seamonkey

Hi,

when I try to limit the permissions of a new or existent group in the admin area to a certain hostgroup in the admin area (Admin -> Groups -> Edit role -> Hostgroup -> Add Restriction -> entering an existing host group) , I get an error message in my browser.

Firebug show a 500er error, stacktrace:

A critical exception occured!
Uncaught AppKitException thrown:
validateMatcher(): invalid matcher used "LIKE"
Stacktrace:
[\#0](https://dev.icinga.com/issues/0) /usr/share/icinga-web/app/modules/Api/models/Store/LegacyLayer/IcingaApiModel.class.php(318): Api\_Store\_LegacyLayer\_IcingaApiModel->validateMatcher('LIKE')
#1 /usr/share/icinga-web/app/modules/Api/actions/ApiSearchAction.class.php(299): Api_Store_LegacyLayer_IcingaApiModel->createFilter('HOSTGROUP_NAME', '%Linux%', 'LIKE') #2 /usr/share/icinga-web/app/modules/Api/actions/ApiSearchAction.class.php(273): Api_ApiSearchAction->buildFiltersFromArray(Object(Api_Store_LegacyLayer_IcingaApiModel), Array) #3 /usr/share/icinga-web/app/modules/Api/actions/ApiSearchAction.class.php(116): Api_ApiSearchAction->addFilters(Object(Api_Store_LegacyLayer_IcingaApiModel), Object(AgaviWebRequestDataHolder)) #4 /usr/share/icinga-web/app/modules/Api/actions/ApiSearchAction.class.php(407): Api_ApiSearchAction->executeRead(Object(AgaviWebRequestDataHolder)) #5 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(949): Api_ApiSearchAction->executeWrite(Object(AgaviWebRequestDataHolder)) #6 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1463): AgaviExecutionContainer->runAction() #7 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1255): AgaviExecutionFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #8 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #9 /usr/share/icinga-web/app/modules/Api/lib/auth/IcingaApiAuthentificationLogoutFilter.class.php(33): AgaviFilterChain->execute(Object(AgaviExecutionContainer)) #10 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1255): IcingaApiAuthentificationLogoutFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #11 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #12 /usr/share/icinga-web/lib/agavi/src/filter/AgaviSecurityFilter.class.php(61): AgaviFilterChain->execute(Object(AgaviExecutionContainer)) #13 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1255): AgaviSecurityFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #14 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #15 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(870): AgaviFilterChain->execute(Object(AgaviExecutionContainer)) #16 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1266): AgaviExecutionContainer->execute() #17 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1255): AgaviDispatchFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #18 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #19 /usr/share/icinga-web/lib/agavi/src/filter/AgaviFormPopulationFilter.class.php(78): AgaviFilterChain->execute(Object(AgaviExecutionContainer)) #20 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFormPopulationFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer)) #21 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(579): AgaviFilterChain->execute(Object(AgaviExecutionContainer)) #22 /usr/share/icinga-web/pub/index.php(49): AgaviController->dispatch() #23 {main}

Relations:

icinga-migration commented 8 years ago

Updated by lehrhardt on 2015-10-08 22:32:30 +00:00

This is a duplicate of https://dev.icinga.org/issues/10184

The commit fixes this problem for me as well.

icinga-migration commented 8 years ago

Updated by mfriedrich on 2015-10-26 08:32:09 +00:00

  • Duplicates set to 10184
icinga-migration commented 8 years ago

Updated by mfriedrich on 2015-10-26 08:32:27 +00:00

  • Status changed from New to Rejected

Thanks for the feedback, closing this issue.