Details
-
Task
-
Resolution: Fixed
-
Minor
-
COmanage Registry 4.3.1 (Ruddy Rex MR1)
Description
The Email Address dashboard widget is configured with a default Email Address Type. Addresses added in the widget receive that address type. When configured to use an Extended Type, the widget fails at the point of adding the address (post-verification).
To reproduce the problem:
- Create an extended type for attribute Email Address. For example: “wordpress”.
- Configure the Email Address Widget’s default Email Address Type to the new extended type.
- Add an address using the widget.
- Go through the verification process (get email, enter the code in the form).
- The process will fail after verification. You’ll find the hung email address data in the cm_email_address_widget_verifications table and the system will throw the error shown below.
2023-08-08 16:55:57 Error: [CakeException] Invalid status code |
Request URL: /registry/email_address_widget/email_address_widget_verifications/verify/s8ec-nuk1
|
Stack Trace:
|
#0 /media/psf/Home/devRoot/comanage/comanage-registry/app/Controller/Component/ApiComponent.php(506): CakeResponse->httpCodes() |
#1 /media/psf/Home/devRoot/comanage/comanage-registry/app/AvailablePlugin/EmailAddressWidget/Controller/EmailAddressWidgetVerificationsController.php(91): ApiComponent->restResultHeader() |
#2 [internal function]: EmailAddressWidgetVerificationsController->verify() |
#3 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs() |
#4 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction() |
#5 /media/psf/Home/devRoot/comanage/comanage-registry/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke() |
#6 /media/psf/Home/devRoot/comanage/comanage-registry/app/webroot/index.php(96): Dispatcher->dispatch() |
#7 {main} |
The data coming through looks correct both in the plugin table and passed along just prior to save. The moment of failure seems occur deep in the CakePHP library code (right at lib/Cake/Model/model.php:_doSave) where we fail out with the above exception.