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

Cannot add facet to Document doc type

    Details

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

      Description

      Use case: adding a facet and schema to every document types.

      The following contribution doesn't give the expected results. Document and its subtypes like File don't have the facet and schema 

      <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
       <facet name="Ranking"> 
         <schema name="ranking"/> 
       </facet> 
       <doctype name="Document" append="true">
         <facet name="Ranking"/>
       </doctype>
      </extension>
      

      The following unit test fails on the first assertion

      DocumentModel doc = session.createDocumentModel(session.getRootDocument().getPathAsString(),"Document","Document");
      Assert.assertTrue(doc.hasFacet("Ranking"));
      Assert.assertTrue(doc.hasSchema("ranking"));
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:

                PagerDuty

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