[MGNLUI-6827] Unable to access custom publication dialog field using multi-field or link field Created: 18/Aug/21  Updated: 13/Sep/23

Status: Open
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 6.2.11
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Java Source File WorkflowCommandActionDefinitionExt.java     Java Source File WorkflowCommandActionExt.java     Text File log1.txt     Text File log2.txt     File publish.yaml    
Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: FieldsMaintenance
Team: Nucleus

 Description   

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

Generated at Mon Feb 12 09:40:23 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.