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

Drive: sync roots computation fail if user looses access on one of them during computation

    XMLWordPrintable

    Details

    • Sprint:
      Drive August, drive-8.1-4
    • Story Points:
      1

      Description

      See NuxeoDriveManagerImpl#queryAndFecthSynchronizationRoots:

              Set<IdRef> references = new LinkedHashSet<IdRef>();
              Set<String> paths = new LinkedHashSet<String>();
              IterableQueryResult results = session.queryAndFetch(query, NXQL.NXQL);
              try {
                  for (Map<String, Serializable> result : results) {
                      IdRef docRef = new IdRef(result.get("ecm:uuid").toString());
                      references.add(docRef);
                      paths.add(session.getDocument(docRef).getPathAsString());
                  }
              } finally {
                  results.close();
              }
      

      "Privilege 'Read' is not granted" can be thrown if permissions change between session.queryAndFetch and session.getDocument.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: