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

Avoid NPE on ACL without name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2021.50, 2023.8
    • Component/s: Core DBS
    • Release Notes Summary:
      Nuxeo doesn't throw NPE on ACL without name anymore.
    • Sprint:
      nxplatform #106
    • Story Points:
      2

      Description

      Probably a corrupted document with an ACL without a name,
      like for NXP-30639 we need to trace the corrupted doc.

      java.lang.NullPointerException: ACL name can't be null
      	at java.util.Objects.requireNonNull(Objects.java:246) ~[?:?]
      	at org.nuxeo.ecm.core.api.security.impl.ACLImpl.<init>(ACLImpl.java:59) ~[nuxeo-core-api-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.api.security.impl.ACLImpl.<init>(ACLImpl.java:68) ~[nuxeo-core-api-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.memToAcp(DBSSession.java:1421) ~[nuxeo-core-storage-dbs-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.getACP(DBSSession.java:1336) ~[nuxeo-core-storage-dbs-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.model.BaseSession.getACP(BaseSession.java:187) ~[nuxeo-core-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.model.BaseSession.getMergedACP(BaseSession.java:208) ~[nuxeo-core-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.getACP(AbstractSession.java:604) ~[nuxeo-core-2021.36.9.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getACP(DocumentModelImpl.java:806) ~[nuxeo-core-api-2021.36.9.jar:?]
      	at org.nuxeo.elasticsearch.io.JsonESDocumentWriter.writeSystemProperties(JsonESDocumentWriter.java:141) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
      	at org.nuxeo.elasticsearch.io.JsonESDocumentWriter.writeESDocument(JsonESDocumentWriter.java:204) ~[nuxeo-elasticsearch-core-2021.36.9.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: