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 #3279] Cannot set custom variables restriction to user (gitmaster abcb...) #931

Closed icinga-migration closed 11 years ago

icinga-migration commented 11 years ago

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

Created by ossmon on 2012-10-11 12:22:10 +00:00

Assignee: mhein Status: Resolved (closed on 2012-10-11 13:23:07 +00:00) Target Version: 1.8 Last Update: 2012-10-11 13:23:07 +00:00 (in Redmine)

Icinga Version: 1.7.0
Icinga Web Version: 1.8.0
IDO Version: 1.7.0
OS Version: RHEL 6.1
DB Type: MySQL
DB Version: 5.1.61
Browser Version: Firefox 11.0

It is no more possible to set host/service custom variables for a user or a group !

in http error log:

==> V0001080-error_log <==
[Thu Oct 11 14:20:02 2012] [error] [client 32.4.44.22] PHP Fatal error:  Cannot redeclare printPlainMessage() (previously declared in /opt/ossmon/icinga-web/app/templates/exceptions/web.php:95) in /opt/ossmon/icinga-web/app/templates/exceptions/web.php on line 108, referer: http://ossmonwe/icinga-web/modules/appkit/admin/users

in firebug

                    A critical exception occured!

                        Uncaught AppKitPHPError thrown:

                                                        PHP Error in_array() expects parameter 2 to be array, null given (/opt/ossmon/icinga-web/app/modules/Api/models/Result/OutputRewriteModel.class.php:152)                        
                        Stacktrace:#0 [internal function]: AppKitExceptionHandler::phpErrorException(2, 'in_array() expe...', '/opt/ossmon/ici...', 152, Array)

#1 /opt/ossmon/icinga-web/app/modules/Api/models/Result/OutputRewriteModel.class.php(152): in_array('1171-13', NULL)
#2 /opt/ossmon/icinga-web/app/modules/Api/models/Result/OutputRewriteModel.class.php(112): Api_Result_OutputRewriteModel->rewriteCustomvariables('YES', 'SERVICE_CUSTOMV...', Array)
#3 /opt/ossmon/icinga-web/app/modules/Api/models/Result/OutputRewriteModel.class.php(176): Api_Result_OutputRewriteModel->doRewrites(Array, Array)
#4 /opt/ossmon/icinga-web/app/modules/Api/actions/ApiSearchAction.class.php(139): Api_Result_OutputRewriteModel->rewrite(Array)
#5 /opt/ossmon/icinga-web/app/modules/Api/actions/ApiSearchAction.class.php(322): Api_ApiSearchAction->executeRead(Object(AgaviWebRequestDataHolder))
#6 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(949): Api_ApiSearchAction->executeWrite(Object(AgaviWebRequestDataHolder))
#7 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1463): AgaviExecutionContainer->runAction()
#8 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1255): AgaviExecutionFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#9 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#10 /opt/ossmon/icinga-web/app/modules/Api/lib/auth/IcingaApiAuthentificationLogoutFilter.class.php(33): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#11 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1255): IcingaApiAuthentificationLogoutFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#12 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#13 /opt/ossmon/icinga-web/lib/agavi/src/filter/AgaviSecurityFilter.class.php(61): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#14 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1255): AgaviSecurityFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#15 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#16 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(870): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#17 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1266): AgaviExecutionContainer->execute()
#18 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1255): AgaviDispatchFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#19 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#20 /opt/ossmon/icinga-web/lib/agavi/src/filter/AgaviFormPopulationFilter.class.php(78): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#21 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(1700): AgaviFormPopulationFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#22 /opt/ossmon/icinga-web/app/cache/config/compile.xml_production__68fee0ab68e068585b8decccceb81bd9affe28e6.php(579): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#23 /opt/ossmon/icinga-web/pub/index.php(49): AgaviController->dispatch()
#24 {main}

Changesets

2012-10-11 13:22:37 +00:00 by mhein cff90d171180ac0f8b1de1abd30ed2df05158efa

Array test for exclude cf's (fixes #3279)
icinga-migration commented 11 years ago

Updated by mfriedrich on 2012-10-11 12:29:08 +00:00

icinga-migration commented 11 years ago

Updated by mhein on 2012-10-11 12:40:10 +00:00

icinga-migration commented 11 years ago

Updated by mhein on 2012-10-11 13:23:07 +00:00

Applied in changeset cff90d171180ac0f8b1de1abd30ed2df05158efa.