Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
CentOS 7, PHP 8.2.1, PostgreSQL 15, Registry develop branch (commit 2e0c5e59)
Description
With the SqlProvisioner plugin installed and a Provisioning Target configured, I receive an error when I try to duplicate a CO via the UI or REST API. I can duplicate just fine when I remove the provisioning target configuration (just the target, not the underlying server config) from the "source" CO. The stack trace is the same regardless of whether duplicate is initiated through the UI or the API:
2023-03-08 18:20:22 Warning: Warning (2): Undefined array key "CoLdapProvisionerTarget" in [/opt/comanage/comanage-registry-develop/app/Model/Co.php, line 514]
Trace:
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
Co::duplicate() - APP/Model/Co.php, line 514
CosController::duplicate() - APP/Controller/CosController.php, line 163
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 96
2023-03-08 18:20:22 Error: [TypeError] array_keys(): Argument #1 ($array) must be of type array, null given
Request URL: /registry/cos/duplicate/40.json
Stack Trace:
#0 /opt/comanage/comanage-registry-develop/app/Model/Co.php(514): array_keys()
#1 /opt/comanage/comanage-registry-develop/app/Controller/CosController.php(163): Co->duplicate()
#2 [internal function]: CosController->duplicate()
#3 /opt/comanage/comanage-registry-develop/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#4 /opt/comanage/comanage-registry-develop/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#5 /opt/comanage/comanage-registry-develop/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#6 /opt/comanage/comanage-registry-develop/app/webroot/index.php(96): Dispatcher->dispatch()
#7