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

Use Framework.doPrivileged in Me endpoint

    XMLWordPrintable

    Details

    • Type: Clean up
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10-HF03, 9.1
    • Fix Version/s: 8.10-HF04, 9.2
    • Component/s: Rest API

      Description

      To be java8 style we should use

      Framework.doPrivileged(() -> userManager.updateUser(currentUser.getModel()));
      

      instead of introducing yet another unrestricted session runner.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: