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

Schema override not taken in account in document type when hotreloading

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.5, 5.6
    • Fix Version/s: 5.7.1
    • Component/s: Core

      Description

      Use case:

      • Override userprofile schema in a bundle:
        Schema:
        <?xml version="1.0"?>
        <xs:schema targetNamespace="http://www.nuxeo.core/ecm/schemas/userprofile/"
          xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nxs="http://www.nuxeo.core/ecm/schemas/userprofile/">
        
          <xs:include schemaLocation="core-types.xsd" />
          <xs:include schemaLocation="base.xsd" />
        
          <xs:element name="avatar" type="nxs:content" />
          <xs:element name="birthdate" type="xs:date" />
          <xs:element name="phonenumber" type="xs:string" />
          <xs:element name="gender" type="xs:boolean" default="false" />
          <xs:element name="locale" type="xs:string" />
          <!-- Netflix user profile metadata -->
          <xs:element name="uservendor" type="nxs:stringList" />
          <xs:element name="userrole" type="nxs:stringList" />
        </xs:schema>
        
        

        Contrib:

        <?xml version="1.0"?>
        <component name="com.netflix.nuxeo.core.types.contrib">
        
          <require>org.nuxeo.ecm.user.center.profile.core.types</require>
        
          <extension target="org.nuxeo.ecm.core.schema.TypeService"
            point="schema">
            <schema name="userprofile" src="schemas/userprofile.xsd"
              prefix="userprofile" override="true"/>
          </extension>
        
        </component>
        
      • hotreload the bundle

      -> New fields are not taken in account

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: