Julian Reschke created JCR-5267:
-----------------------------------
Summary: DavEx JSON Serialization Depth Limit Bypass
Key: JCR-5267
URL: https://issues.apache.org/jira/browse/JCR-5267
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-jcr-server
Reporter: Julian Reschke
In JcrRemotingServlet:
{code:java}
if (includes == null) {
if (depth < BatchReadConfig.DEPTH_INFINITE) {
NodeType type = node.getPrimaryNodeType();
depth = brConfig.getDepth(type.getName());
}
writer.write(node, depth);
} else {
writeMultiple(writer, node, includes, depth);
} {code}
This code should check for "<=", otherwise the depth will not be defaulted from
the config.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)