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

PublicationTree - See only trees with childrens

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Postponed
    • Component/s: Publishing

      Description

      Hi,

      In the package "nuxeo-platform-publisher-web", the protected method "filterEmptyTrees" returns all available sectionRoot even if they have no children. The filter conditions on the Treetype is not useful.

      Could you review this method from the line 177 as:

          protected List <String> filterEmptyTrees (Collection <String> trees)
                  PublicationTreeNotAvailable throws, ClientException {
              List <String> filteredTrees = new ArrayList <> ();

              for (String tree: trees) {
                  try {
                      PublicationTree ptree publisherService.getPublicationTree = (
                              tree, DocumentManager, null,
                              navigationContext.getCurrentDocument ());
                      if (ptree! = null) {
                              if (pTree.getChildrenNodes (). size ()> 0)

      {                             filteredTrees.add (tree);                         }

                      }
                  } Catch (PublicationTreeNotAvailable e)

      {                 log.warn ("Publication tree" tree +                         + "Is not available: check config");                 log.debug ("Publication tree" tree +                         + "Is not available: root causes is", e);             }

              }
              filteredTrees return;
          }

      Thanks
      Pierre

      Reporter: Pierre JENICOT
      E-mail: p.jenicot@gmail.com

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: