Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1462

Fix the build of the query to fetch user's permissions

    XMLWordPrintable

    Details

      Description

      At https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/nuxeo-user-group-management/nuxeo-user-group-permissions-table.html#L296 there is a missing space.

      The consequence is that the built query looks like below in the JSON payload

      {
        "params": {
          "query": "SELECT * FROM Document WHERE ecm:mixinType != \"HiddenInNavigation\"AND ecm:isProxy = 0 AND ecm:isVersion = 0 AND ecm:isTrashed = 0AND ecm:acl/*1/principal = \"thierry\"",
          "page": 0,
          "pageSize": 25
        },
        "context": {}
      } 

      Same problem in master: https://github.com/nuxeo/nuxeo-ui-elements/blob/master/nuxeo-user-group-management/nuxeo-user-group-permissions-table.js#L299

      Note that it seems to works 2 times out of 3 even with this problem.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40 minutes
                40m