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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.4.6
    • Fix Version/s: 5.4.8, 5.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS 10.11.4, Safari, Java 8, Tomcat 8, IntelliJ 2016.1
    • Release notes required:
      Yes
    • Sprint:
      Basel 50, Basel 50
    • Story Points:
      2
    • Magnolia Release:
      5.4.8, 5.5

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: