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

Reduce response size of the ACL enricher

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 9.10-HF36, 10.10-HF13, 11.1
    • Component/s: Rest API
    • Release Notes Summary:
      The User object representation is returned to the client without its groups.
    • Backlog priority:
      400
    • Upgrade notes:
      Hide

      Since 11.1 UserManagerResolver will marshall User entities without fetching their references (by default, only groups are references). It's mainly used by the ACL enricher and it will improve the duration to load the Permissions tab.

      To enable the same behavior with 10.10, one has to use the following code

        <require>org.nuxeo.ecm.platform.usermanager.properties</require>
        <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
          <property name="nuxeo.usermanager.resolver.fetchReferences">false</property>
        </extension>
      
      Show
      Since 11.1 UserManagerResolver will marshall User entities without fetching their references (by default, only groups are references). It's mainly used by the ACL enricher and it will improve the duration to load the Permissions tab. To enable the same behavior with 10.10, one has to use the following code <require>org.nuxeo.ecm.platform.usermanager.properties</require> <extension target= "org.nuxeo.runtime.ConfigurationService" point= "configuration" > <property name= "nuxeo.usermanager.resolver.fetchReferences" > false </property> </extension>
    • Sprint:
      nxsupport 11.1.4

      Description

      The ACL enricher returns all information (properties, members, groups, nested groups) for all the users and groups who have a permission on the current document.

      It has 3 consequences :

      • fetching all the information takes time
      • marshalling all the information takes time
      • sending all the information with a big JSON response takes time

      Displaying the Permissions tab could then easily ends on a timeout.

      The behavior could be improved by fetching/sending only the information needed in this tab: username, firstname, lastname

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 1 day, 4 hours, 15 minutes
                  1d 4h 15m

                    PagerDuty

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