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

Email Dashboard Widget: failure to add address using Extended Types

    XMLWordPrintable

Details

    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:

      1. Create an extended type for attribute Email Address. For example: “wordpress”.
      2. Configure the Email Address Widget’s default Email Address Type to the new extended type.
      3. Add an address using the widget.
      4. Go through the verification process (get email, enter the code in the form).
      5. 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.

      Attachments

        Activity

          People

            arlen.johnson@at.internet2.edu Arlen Johnson (google.com)
            arlen.johnson@at.internet2.edu Arlen Johnson (google.com)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: