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

Fix DocumentBackedFolderItem.adaptDocuments foreach

    XMLWordPrintable

    Details

      Description

      Since NXP-22032, we check that parent can be adapted before adapting the child.
      Unfortunately continue statement is not in the right condition part.

      if (parent == null) {
          if (log.isDebugEnabled()) {
              log.debug(String.format("Cannot adapt parent document of %s as a FileSystemItem, skipping descendant document",
                      doc.getPathAsString()));
              continue;
          }
      }
      

      This causes DefaultFileSystemItemFactoryFixture.testScrollDescendantsWithBlockedInheritance to fail if logger level is more specific than DEBUG.

        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 - 2 hours
                  2h

                    PagerDuty

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