Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30840

Fix CurrentUser MVEL object applying "user:" prefix to name property

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.10-HF57
    • Fix Version/s: HOTFIX_10.10, 2021.x
    • Component/s: Automation
    • Tags:
    • Backlog priority:
      600

      Description

      Steps to Reproduce:

      1. Define Studio project with:
        • custom doctype that includes a multi-valued user/group field (OwnerTester in attached .jar)
        • automation chain and event handler that populates above field with {{@ {CurrentUser.name}

          }} at Empty Document Created

      2. In Web UI, create new instance of OwnerTester. Observe default value applied in nuxeo-user-suggestion widget of the Create layout, and create the document.
      3. Examine document's JSON export and observe ownertester:owner field - the username is prefixed with the string "user:".
      4. Create a new instance of OwnerTester. In the nuxeo-user-suggestion widget, remove the default value and re-select the user. Create the document.
      5. Examine document JSON export and observe ownertester:owner field - the username is not prefixed.

      Expected behavior: the username pre-populated using CurrentUser object is not prefixed with 'user:'.

      Actual behavior: the username pre-populated using CurrentUser object is prefixed with {{'user:' }}and there is no option to disable this.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.