Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-403

Editing a Blossom Component Through its Dialog Causes ClassCastException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Neutral Neutral
    • None
    • 1.3.4
    • None
    • Reported on Magnolia 5.4.13 using magnolia-personalization-components-1.3.4

      There was a commit in code where the line

      final FormDialogPresenter formDialogPresenter = dialogPresenterFactory.createFormDialogPresenter(dialogId);
      

      Got changed to

       final ElementAwareFormDialogPresenter formDialogPresenter = (ElementAwareFormDialogPresenter) dialogPresenterFactory.createFormDialogPresenter(dialogId);
      

      (Line 104 of magnolia-personalization-components/src/main/java/info/magnolia/personalization/ui/pages/action/EditVariantAction.java)

      The addition of the attempt to cast ElementAwareFormDialogPresenter to the FormDialogPresenter is causing a ClassCastException when a user tries to open a Blossom component’s dialog as indicated here : SUPPORT-7991

      Some extra info:
      The commit for this code is 0d07d0e7be9 which is part of the fixes for MGNLPN-373

        Acceptance criteria

              Unassigned Unassigned
              jnodarse Julian Nodarse
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD