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

Fix Fn.getPrincipal which doesn't fetch NuxeoPrincipal's groups

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Explicit call to the getPrincipal method keeps fetching groups.
    • Backlog priority:
      400
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #52

      Description

      This behavior seems to have been introduced by NXP-30657:

      Repro:

      1. Create a NuxeoPrincipal 

      2. Add groups to it

      3. In an automation scripting:

      var currentPrincipal = Fn.getPrincipal(<user>);
      var currentUserGroups = currentPrincipal.getAllGroups();
      

      Results:

      currentUserGroups will be empty.

       

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: