Uploaded image for project: 'COmanage'
  1. COmanage
  2. CO-2616

Error when duplicating a CO that has a configured SqlProvisioner Provisioning Target

    XMLWordPrintable

Details

    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

      {main}

      Attachments

        Activity

          People

            ioannis.e.igoumenos@at.internet2.edu Ioannis Eythymios Igoumenos (google.com)
            trevor.buchanan@at.internet2.edu Trevor Buchanan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: