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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 10.10-HF57
    • Fix Version/s: None
    • Component/s: Automation

      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:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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