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

Platform admin cannot duplicate a CO

    XMLWordPrintable

Details

    Description

      When attempting to duplicate a CO the platform admin sees "An Internal Error Has Occurred" and this stack trace is thrown in the log:

       Notice: Notice (8): Trying to get property 'name' of non-object in [/srv/comanage-registry/app/Model/Co.php, line 481]
       Trace:
       ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
       Co::duplicateObjects() - APP/Model/Co.php, line 481
       Co::duplicate() - APP/Model/Co.php, line 346
       CosController::duplicate() - APP/Controller/CosController.php, line 176
       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
       2021-10-19 15:45:14 Error: [Error] Call to a member function find() on null
       Request URL: /registry/cos/duplicate/23
       Stack Trace:
       #0 /srv/comanage-registry/app/Model/Co.php(346): Co->duplicateObjects(NULL, 'co_id', '23', Array)
       #1 /srv/comanage-registry/app/Controller/CosController.php(176): Co->duplicate('23')
       #2 [internal function]: CosController->duplicate('23')
       #3 /srv/comanage-registry/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs(Object(CosController), Array)
       #4 /srv/comanage-registry/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
       #5 /srv/comanage-registry/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(CosController), Object(CakeRequest))
       #6 /srv/comanage-registry/app/webroot/index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
       #7 {main}
       
      
      

      Attachments

        Issue Links

          Activity

            People

              benn.oshrin@at.internet2.edu Benn Oshrin (internet2.edu)
              scott.koranda@at.internet2.edu Scott Koranda (uwm.edu/illinois.edu)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: