Issue (View Online)

Key: NXP-374
Issue Type: Bug Bug
Status: Resolved Resolved
Priority: Minor Minor
Resolution: Fixed
Assignee: Thierry Delprat
Reporter: Anahide Tchertchian

Operations

View all
View comments
View history
Cannot use a simple type in document schema definition 
Updated: 12/02/07 20:33   Created: 13/12/06 13:17  

The following issue has been resolved as FIXED.

Project: Nuxeo Enterprise Platform 5
Components: Core
Fix Versions: 5.0.0 GA

 Description   
When defining the following xsl schema type:

<xs:simpleType name="stringList">
    <xs:list itemType="xs:string"/>
    </xs:simpleType>

an error is thrown :

Caused by: java.lang.NullPointerException
    at org.nuxeo.ecm.core.schema.types.SimpleTypeImpl.getPrimitiveType(SimpleTypeImpl.java:71)
    at org.nuxeo.ecm.core.jcr.TypeAdapter.scalarType2Jcr(TypeAdapter.java:170)
    at org.nuxeo.ecm.core.jcr.TypeImporter.createChildrenDefs(TypeImporter.java:345)
    at org.nuxeo.ecm.core.jcr.TypeImporter.createSchemaDefinition(TypeImporter.java:194)
    at org.nuxeo.ecm.core.jcr.TypeImporter.collectSchemas(TypeImporter.java:170)
    at org.nuxeo.ecm.core.jcr.TypeImporter.registerTypes(TypeImporter.java:114)
    at org.nuxeo.ecm.core.jcr.BuiltinTypes.registerUserTypes(BuiltinTypes.java:138)
    at org.nuxeo.ecm.core.jcr.BuiltinTypes.registerTypes(BuiltinTypes.java:116)
    at org.nuxeo.ecm.core.jcr.JCRRepository.initialize(JCRRepository.java:119)
    ... 420 more

Problem currently saved using instead:

<xs:complexType name="stringList">
    <xs:sequence>
      <xs:element name="string" type="xs:string" minOccurs="0"
        maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>

but that adds an unnecessary level in the schema definiton hierarchy.

This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to