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

Fix setting ACP on versions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8.0-HF07, 5.9.2
    • Fix Version/s: 5.8.0-HF13, 5.9.4
    • Component/s: Core VCS

      Description

      There is a regression on setting ACP on version documents. This should be legal, and used to work, but since NXP-13587 on 5.8.0-HF07 it fails with:

      org.nuxeo.ecm.core.api.ClientException: Failed to set acp
      	at org.nuxeo.ecm.core.api.AbstractSession.setACP(AbstractSession.java:802)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl$6.run(DocumentModelImpl.java:876)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl$RunWithCoreSession.execute(DocumentModelImpl.java:427)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.setACP(DocumentModelImpl.java:879)
      Caused by: org.nuxeo.ecm.core.security.SecurityException: Cannot write property: ecm:acl
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSecurityManager.setACP(SQLSecurityManager.java:73)
      	at org.nuxeo.ecm.core.api.AbstractSession.setACP(AbstractSession.java:797)
      	... 27 more
      Caused by: org.nuxeo.ecm.core.api.DocumentException: Cannot write property: ecm:acl
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.checkWritable(SQLDocumentLive.java:135)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLBaseProperty.checkWritable(SQLBaseProperty.java:57)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLCollectionProperty.setValue(SQLCollectionProperty.java:76)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSecurityManager.setACP(SQLSecurityManager.java:71)
      	... 28 more
      

      On 5.9.x this was already fixed by the NXP-14278 refactoring on SQLSession internals.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: