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

Fix fetching of nodes marked absent in persistence context

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0-HF19, 5.9.5
    • Component/s: Core VCS
    • Tags:
    • Sprint:
      Sprint RepoTeam 5.9.5-1

      Description

      A fragment marked absent in the PersistenceContext must not be returned to getMulti if allowAbsent is false.

      Otherwise the typical error is:

      java.lang.NullPointerException
      	at org.nuxeo.ecm.core.storage.sql.Node.isProxy(Node.java:155)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:627)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:614)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getParent(SQLSession.java:692)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getParent(SQLDocumentLive.java:125)
      	at org.nuxeo.ecm.core.api.DocumentModelFactory.createDocumentModel(DocumentModelFactory.java:90)
      	at org.nuxeo.ecm.core.api.AbstractSession.readModel(AbstractSession.java:375)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: