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

Show error when two schemas have the same prefix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.8
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Core VCS

      Description

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: