Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6654

Decorating the definition of an app will cause the choose dialog to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 5.4.8, 5.5
    • 5.4.6
    • None
    • None
    • Mac OS 10.11.4, Safari, Java 8, Tomcat 8, IntelliJ 2016.1
    • Yes
    • Basel 50, Basel 50
    • 2

      Using e.g. the following definition decoration for the security app:

      /my-module/decorations/security-app/apps/security.yaml

      subApps:
        users:
          actions:
            editUser:
              # Set custom users dialog
              dialogName: 'my-module:apps/user'
            addUser:
              # Set custom users dialog
              dialogName: 'my-module:apps/user'
      

      When using a LinkFieldDefinition:

      subApps:
        detail:
          class: info.magnolia.ui.contentapp.detail.DetailSubAppDescriptor
          subAppClass: nl.trimm.portal.app.companies.CompanyDetailSubApp
          editor:
            nodeType:
              icon: icon-node-content
              name: mgnl:company
            form:
              tabs:
                - name: main
                  fields:
                  - name: contacts
                    fields:
                      - name: contacts
                        class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
                        transformerClass: info.magnolia.ui.form.field.transformer.multi.MultiValueChildNodeTransformer
                        field:
                          class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
                          targetWorkspace: users
                          appName: security
                          identifierToPathConverter:
                            class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
                          label: empty
      

      Clicking on the "Select new" button in the MultivalueField will trigger the following exception:
      error-log.txt

      It seems that it does not matter what is added to the decoration file. The "Select new" action always fails and even lets Magnolia crashes sometimes after.

      Removing the definition decoration for the security app, will fix the "Select new" action again.
      Adding the decorations directly into JCR will make the button action work.

        Acceptance criteria

              apchelintcev Aleksandr Pchelintcev
              jdiepeveen Jordie Diepeveen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD