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

Drive: checking collection membership when adapting a document as a FileSystemItem can lead to an infinite loop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF01, 7.1
    • Component/s: Nuxeo Drive

      Description

      In AbstractDocumentBackedFileSystemItem#handleCollectionMember:

                 while (docCollections.iterator().hasNext() && parent == null) {
                      collection = docCollections.iterator().next();
                      parent = getFileSystemItemAdapterService().getFileSystemItem(
                              collection, false, relaxSyncRootConstraint);
                  }
      

      Iterator must be fetched only once!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: