-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Template Rendering
-
Release Notes Summary:Refrain from setting ACL on placeless documents.
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #71
-
Story Points:2
NPE seen during unit test
[2022-09-13T14:13:53.735Z] 2022-09-13 14:13:53,391 [main] ERROR [EventServiceImpl] Exception during templateCreator sync listener execution (after 1ms), continuing to run other listeners
[2022-09-13T14:13:53.735Z] java.lang.NullPointerException: null
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory.lambda$setAcl$0(SimpleTemplateBasedFactory.java:85) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.CoreInstance$4.run(CoreInstance.java:284) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:112) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.CoreInstance.doPrivileged(CoreInstance.java:286) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory.setAcl(SimpleTemplateBasedFactory.java:82) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory.createContentStructure(SimpleTemplateBasedFactory.java:55) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl.executeFactoryForType(ContentTemplateServiceImpl.java:154) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.content.template.listener.ContentCreationListener.handleEvent(ContentCreationListener.java:53) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:280) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:289) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:791) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.AbstractSession.lambda$getOrCreateDocument$8(AbstractSession.java:2792) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.LockHelper.doAtomically(LockHelper.java:78) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.AbstractSession.getOrCreateDocument(AbstractSession.java:2788) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.AbstractSession.getOrCreateDocument(AbstractSession.java:2772) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.comment.impl.TreeCommentManager.getLocationRefOfCommentCreation(TreeCommentManager.java:348) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.comment.impl.TreeCommentManager.lambda$createComment$3(TreeCommentManager.java:186) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.CoreInstance$2.run(CoreInstance.java:251) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:112) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.core.api.CoreInstance.doPrivileged(CoreInstance.java:253) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.comment.impl.TreeCommentManager.createComment(TreeCommentManager.java:183) ~[classes/:?]
[2022-09-13T14:13:53.735Z] at org.nuxeo.ecm.platform.comment.TestTreeCommentNotification.testCommentsStructureOnDocumentWithoutDublincore(TestTreeCommentNotification.java:108) ~[test-classes/:?]