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

Fix NPE on memToACP when accessing a corrupted document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10-HF51
    • Fix Version/s: 10.10-HF63, 2021.23
    • Component/s: Core MongoDB

      Description

      Even after NXP-30515 there are still NPE case on corrupted ACP

      java.lang.NullPointerException: null
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.memToAcp(DBSSession.java:1414) ~[nuxeo-core-storage-dbs-10.10-HF51.jar:?]
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.getACP(DBSSession.java:1326) ~[nuxeo-core-storage-dbs-10.10-HF51.jar:?]
      	at org.nuxeo.ecm.core.model.BaseSession.getACP(BaseSession.java:186) ~[nuxeo-core-10.10-HF51.jar:?]
      	at org.nuxeo.ecm.core.model.BaseSession.getMergedACP(BaseSession.java:207) ~[nuxeo-core-10.10-HF51.jar:?]
      	at sun.reflect.GeneratedMethodAccessor225.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_302]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_302]
      	at org.nuxeo.ecm.core.storage.dbs.DBSRepositoryBase$DBSSessionInvoker.invoke(DBSRepositoryBase.java:542) ~[nuxeo-core-storage-dbs-10.10-HF51.jar:?]
      	at com.sun.proxy.$Proxy103.getMergedACP(Unknown Source) ~[?:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.getACP(AbstractSession.java:569) ~[nuxeo-core-10.10-HF51.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getACP(DocumentModelImpl.java:759) ~[nuxeo-core-api-10.10-HF51.jar:?]
      	at org.nuxeo.elasticsearch.io.JsonESDocumentWriter.writeSystemProperties(JsonESDocumentWriter.java:131) ~[nuxeo-elasticsearch-core-10.10-HF50.jar:?]
      	at org.nuxeo.elasticsearch.io.JsonESDocumentWriter.writeESDocument(JsonESDocumentWriter.java:194) ~[nuxeo-elasticsearch-core-10.10-HF50.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: