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

AbstractSession.createDocument(DocumentModel) fails on docs with dynamic facets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.6-RC1, 5.6
    • Component/s: None

      Description

      When creating a Documentmodel by copy via AbstractSession.createDocument(doc) it fails if the input Documentmodel contains dynamic facets

      Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.core.model.NoSuchPropertyException. message: The property at 'nxts:templateId' doesn't exists
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.makeProperties(SQLSession.java:971)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.makeProperty(SQLSession.java:936)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getProperty(SQLDocumentLive.java:155)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLComplexProperty.setPropertyValue(SQLComplexProperty.java:222)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.writeDocumentPart(SQLDocumentLive.java:169)
      	at org.nuxeo.ecm.core.api.DocumentModelFactory.writeDocumentModel(DocumentModelFactory.java:299)
      	at org.nuxeo.ecm.core.api.AbstractSession.writeModel(AbstractSession.java:491)
      	at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:805)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tdelprat Thierry Delprat
                Reporter:
                tdelprat Thierry Delprat
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: