-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 5.8
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Core VCS
If two schemas are registered with the same prefix, an error should be raised because this can cause errors.
In particular, if two schemas with the same prefix have a complex property element of the same name, the definition of the sub-properties will fail:
org.nuxeo.ecm.core.api.ClientException: Failed to load repository default: Repository not found: default Caused by: java.lang.NullPointerException at org.nuxeo.ecm.core.storage.sql.Model.inferTypePropertyPaths(Model.java:759) at org.nuxeo.ecm.core.storage.sql.Model.inferTypePropertyPaths(Model.java:746) at org.nuxeo.ecm.core.storage.sql.Model.inferSchemaPropertyPaths(Model.java:684) at org.nuxeo.ecm.core.storage.sql.Model.initDocTypeOrMixinModel(Model.java:1319) at org.nuxeo.ecm.core.storage.sql.Model.initModels(Model.java:1227) at org.nuxeo.ecm.core.storage.sql.Model.<init>(Model.java:488) at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.initRepository(RepositoryImpl.java:316)