Details
-
Bug
-
Resolution: Fixed
-
Major
-
COmanage Registry 4.4.0 (Sparkling Summit)
-
None
Description
When creating (or editing) an Enrollment Flow, if a Manager or Sponsor attribute is edited, Registry throws an error. (See attached screenshot.) Managers and Sponsors can be added but not edited.
TO REPRODUCE:
- Add a manager or sponsor attribute to an enrollment flow OR edit an existing manager or sponsor attribute
- Add a default value to the attribute (a CO person) using the People Picker
- Save the attribute
- Edit the attribute again, and remove the default value <-- This is the essential step
- Save the attribute
- Attempt to Edit the attribute again.
Once we reach this failure condition, it happens on any enrollment flow.
Stack trace (in text):
2025-02-13 17:20:30 Error: [NotFoundException] CoPerson "" Not Found
Request URL: /registry/co_enrollment_attributes/edit/1394
Stack Trace:
#0 /media/psf/Home/devRoot/comanage/comanage-registry/app/Model/Behavior/ChangelogBehavior.php(232): ChangelogBehavior->isDeleted()
#1 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Utility/ObjectCollection.php(129): ChangelogBehavior->beforeFind()
#2 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Event/CakeEventManager.php(244): ObjectCollection->trigger()
#3 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Model/Model.php(3110): CakeEventManager->dispatch()
#4 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Model/Model.php(3020): Model->buildQuery()
#5 /media/psf/Home/devRoot/comanage/comanage-registry/app/Controller/CoEnrollmentAttributesController.php(311): Model->find()
#6 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Event/CakeEventManager.php(244): CoEnrollmentAttributesController->beforeRender()
#7 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Controller/Controller.php(941): CakeEventManager->dispatch()
#8 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Routing/Dispatcher.php(200): Controller->render()
#9 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#10 /media/psf/Home/devRoot/comanage/comanage-registry/app/webroot/index.php(96): Dispatcher->dispatch()
#11 {main}