-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 73.18.2
-
Fix Version/s: 3.7.0
-
Component/s: Schemas
-
Tags:
-
Backlog priority:510
-
Browser:
-
Sprint:NOS 10.3.4, NOS 10.10.1 - end nov, NOS 10.10.2 - begin dec, NOS 10.10.3 - end dec, NOS mid Feb 11.1.2, NOS end Feb 11.1.3
-
Story Points:3
REPRODUCTION STEPS
- Using TP 9.10
- Define a new Schema
- Add a complex field
- Edit field
=> required checkbox appears and can be used
=> expected: checkbox shouldn't appear, and even if used it should not be taken into account on this tp
CONSEQUENCES
- Save your changes
- Do a hot reload
- This error log is wrote in server.log
"Brief" log (server.log)
Suppressed: org.xml.sax.SAXParseException; systemId: file:/C:/nuxeo-test/tmp/schemas/repeatAndCompare.xsd; lineNumber: 37; columnNumber: 42; undefined simple type 'xs:complex'
at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:180)
at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:175)
at com.sun.xml.xsom.impl.parser.DelayedRef.resolve(DelayedRef.java:110)
at com.sun.xml.xsom.impl.parser.DelayedRef.run(DelayedRef.java:85)
at com.sun.xml.xsom.impl.parser.ParserContext.getResult(ParserContext.java:135)
at com.sun.xml.xsom.parser.XSOMParser.getResult(XSOMParser.java:214)
at org.nuxeo.ecm.core.schema.XSDLoader.loadSchema(XSDLoader.java:254)
at org.nuxeo.ecm.core.schema.SchemaManagerImpl.loadSchema(SchemaManagerImpl.java:412)
at org.nuxeo.ecm.core.schema.SchemaManagerImpl.recomputeSchemas(SchemaManagerImpl.java:375)
... 140 more
Problematic part of the schema generated
<xs:element name="actor"> <xs:simpleType> <xs:restriction base="xs:complex"/> </xs:simpleType> </xs:element>
AC
- When using a TP that does not support it (<= 10.2 ?) required checkbox does not appear on a complex field
- When require has been set on a complex field in a TP that does not support it, Studio ignores that configuration and I can deploy my config without error