Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6827

Unable to access custom publication dialog field using multi-field or link field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 6.2.11
    • dialogs
    • None

      Steps to reproduce issue with jcrMultiValueField

      1.  edit /workflow-pages/includes/publish.yaml adding 1 more field as below:
            emailNotification:
              label: Email Notification
              $type: jcrMultiValueField
              field:
                $type: linkField
                datasource:
                  $type: jcrDatasource
                  workspace: users
                  rootPath: /admin
                  nodeNameProperty: email
                  allowedNodeTypes:
                    - mgnl:user
                    - mgnl:folder
                  describeByProperty: email
        
      1.  to access the added field, we need a custom CommandAction (and its definition) for example below ones:

      Customization is just print out the field and put it to params object.

      .. Logs, screenshots, gifs...

      Expected results

      • custom field appear and work for user

      .. Justify non-trivial expectations with a link to a doc or a relevant discussion.

      Actual results

      Steps to reproduce issue with link field

      1.  edit /workflow-pages/includes/publish.yaml adding 1 more field as below (replace multiValueField by a single linkField):
            emailNotification:
              label: Email Notification
              $type: linkField
              datasource:
                $type: jcrDatasource
                workspace: users
                rootPath: /admin
                nodeNameProperty: email
                allowedNodeTypes:
                  - mgnl:user
                  - mgnl:folder
                describeByProperty: email
        

      Expected results

      • custom field appear and work for user

      .. Justify non-trivial expectations with a link to a doc or a relevant discussion.

      Actual results

      • Clicking on "Publish" button run without any error report. However from back end side, we can find issue from log which reported that stored item cannot be serialized. This may cause mis-understand from customers that publication works. Please also fix this error report.
      • workflow issue happen due to UI item can not be serialized
      • log file: log2.txt

      Workaround

      • Please advice

      Development notes

      • N/A

        Acceptance criteria

          1. publish.yaml
            1 kB
          2. WorkflowCommandActionDefinitionExt.java
            0.4 kB
          3. WorkflowCommandActionExt.java
            2 kB
          4. log1.txt
            20 kB
          5. log2.txt
            36 kB

              Unassigned Unassigned
              viet.nguyen Viet Nguyen
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD