Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
-
Empty show more show less
-
Saigon 127, Saigon 128, Saigon 129
-
1
Description
If you include the childNodeTypes item in a delivery configuration, and it has no configured items "under" it - then requests will get an exception:
java.lang.NullPointerException: null at info.magnolia.rest.delivery.jcr.filter.FilteringContentDecoratorBuilder.wrapNodeIterator(FilteringContentDecoratorBuilder.java:115) ~[magnolia-rest-content-delivery-2.0-SNAPSHOT.jar:?]
To reproduce, use this configuration
stories:
depth: 1
includeSystemProperties: true
bypassWorkspaceAcls: true
#rootPath: /grandparent
rootPath: /stories-demo2
nodeTypes:
0: mgnl:composition
childNodeTypes:
limit: 1
Expected behaviour is that no child nodes will be returned in the response.
Checklists
Acceptance criteria