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

Publication service assume that Ancestor tree contains a Domain doc type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.6
    • Fix Version/s: None
    • Component/s: Publishing

      Description

      • I create a doc type MyDomain that can be created into root container
      • I create an instance of this document type
      • I create a SectionRoot in it and some sections
      • I add a contribution to declare this new Section Root container
      <extension target="org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl" 
        point="treeInstance">
        <publicationTreeConfig name="MySectionsTree" tree="RootSectionsCoreTree" 
          factory="CoreProxy" localSectionTree="true" title="UER" >
          <parameters> 
            <parameter name="RootPath">/myDomain/sections</parameter>
            <parameter name="enableSnapshot">true</parameter>
            <parameter name="iconExpanded">/icons/folder_open.gif</parameter>
            <parameter name="iconCollapsed">/icons/folder.gif</parameter>
          </parameters>
        </publicationTreeConfig>
      </extension>
      
      • I publish a document in a section created above
      • I have an error

      => Stackover flow because there is a recursive method to find the root container with this following end clause:

      AbstractPublishActions#getPathFragments
      
              if (documentModel.getType().startsWith("Domain")) {
                  return;
              }
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: