[ 
https://issues.apache.org/jira/browse/JCR-5267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated JCR-5267:
--------------------------------
    Fix Version/s: 2.24

> 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
>            Priority: Minor
>             Fix For: 2.24
>
>
> 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)

Reply via email to