Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5170

Fix Studio registry for the "picture" schema

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.1
    • Fix Version/s: 3.8.0
    • Component/s: Registries

      Description

      An incorrect schema is generated if the property headline (or subheadline) is used to define a page provider. The schema will contain this definition

      <?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nxs="http://www.nuxeo.org/ecm/project/schemas/tmartins910/headligne_pp" xmlns:nxsv="http://www.nuxeo.org/ecm/schemas/core/validation/" xmlns:ref="http://www.nuxeo.org/ecm/schemas/core/external-references/" targetNamespace="http://www.nuxeo.org/ecm/project/schemas/tmartins910/headligne_pp">  
        <!-- helper XSD definitions for list types -->  
        <xs:complexType name="content"> 
          <xs:sequence> 
            <xs:element name="encoding" type="xs:string"/>  
            <xs:element name="mime-type" type="xs:string"/>  
            <xs:element name="data" type="xs:base64Binary"/>  
            <xs:element name="name" type="xs:string"/>  
            <xs:element name="length" type="xs:long"/>  
            <xs:element name="digest" type="xs:string"/> 
          </xs:sequence> 
        </xs:complexType>  
        <xs:simpleType name="stringList"> 
          <xs:list itemType="xs:string"/> 
        </xs:simpleType>  
        <xs:simpleType name="doubleList"> 
          <xs:list itemType="xs:double"/> 
        </xs:simpleType>  
        <xs:simpleType name="dateList"> 
          <xs:list itemType="xs:date"/> 
        </xs:simpleType>  
        <xs:simpleType name="integerList"> 
          <xs:list itemType="xs:integer"/> 
        </xs:simpleType>  
        <xs:simpleType name="booleanList"> 
          <xs:list itemType="xs:boolean"/> 
        </xs:simpleType>  
        <xs:complexType name="blobList"> 
          <xs:sequence> 
            <xs:element name="item" type="nxs:content" minOccurs="0" maxOccurs="unbounded"/> 
          </xs:sequence> 
        </xs:complexType>  
        <xs:element name="picture_headline" type="xs:longString"/>
      </xs:schema>
      

      where xs:longString is undefined.

      This will cause a repository initialisation failure or a hotreload failure with the error

      	Suppressed: org.xml.sax.SAXParseException; systemId: file:/C:/ProgramData/Nuxeo/tmp/schemas/pp_redaction_pp.xsd; lineNumber: 40; columnNumber: 61; undefined simple or complex type 'xs:longString'

      Note that the longString property appears among the available choice when selecting the picture schema, which seems to highlight that the definition of picture in the Studio registry is incorrect. See attached image.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h