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

Proxies with attached schemas must play well with dublincore listener

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.7.1
    • Fix Version/s: 5.8
    • Component/s: Core
    • Backlog priority:
      600

      Description

      When a proxy has an attached schema (NXP-11562) and a saveDocument is called on it, if the dublincore listener is activated (the default) then save will fail:

      Caused by: org.nuxeo.ecm.core.api.ClientException: failed to write document part
      	at org.nuxeo.ecm.core.api.DocumentModelFactory.writeDocumentModel(DocumentModelFactory.java:305)
      	at org.nuxeo.ecm.core.api.AbstractSession.writeModel(AbstractSession.java:558)
      	at org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1981)
      Caused by: org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentVersion$VersionNotModifiableException: Cannot set property on a version: dc:modified = java.util.GregorianCalendar[...]
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentVersion.setPropertyValue(SQLDocumentVersion.java:254)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.writeDocumentPart(SQLDocumentLive.java:178)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentProxy.writeDocumentPart(SQLDocumentProxy.java:193)
      	at org.nuxeo.ecm.core.api.DocumentModelFactory.writeDocumentModel(DocumentModelFactory.java:299)
      	... 151 more
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified