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

Fix XML import when using mixin facets

    XMLWordPrintable

    Details

      Description

      When the quota addon is installed, for instance, the dynamic facet "DocumentsCountStatistics" is part of exported XML content.

      This produces an error when importing back the zip:

      2014-04-11 11:40:51,643 ERROR [http-bio-10.213.1.54-8080-exec-6266] [org.nuxeo.ecm.platform.routing.core.persistence.RouteModelsZipImporter] Can not import route model
      org.nuxeo.ecm.core.api.ClientRuntimeException: No such facet: DocumentsCountStatistics
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.addFacet(DocumentModelImpl.java:572)
      	at org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter.loadFacetsInfo(AbstractDocumentModelWriter.java:209)
      	at org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter.createDocument(AbstractDocumentModelWriter.java:147)
      	at org.nuxeo.ecm.core.io.impl.plugins.DocumentModelWriter.doWrite(DocumentModelWriter.java:102)
      	at org.nuxeo.ecm.core.io.impl.plugins.DocumentModelWriter.write(DocumentModelWriter.java:72)
      	at org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter.write(AbstractDocumentWriter.java:49)
      

      It looks like the fact that it's a mixin facet is an issue for the import code.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 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 - 2 days
                  2d