You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Antonio Sanso (Created) (JIRA)" <ji...@apache.org> on 2011/12/07 15:10:40 UTC
[jira] [Created] (SLING-2324) The recursion selector value for the
JsonRenderServlet is limited to Integer.MAX_VALUE
The recursion selector value for the JsonRenderServlet is limited to Integer.MAX_VALUE
--------------------------------------------------------------------------------------
Key: SLING-2324
URL: https://issues.apache.org/jira/browse/SLING-2324
Project: Sling
Issue Type: Bug
Components: Servlets
Affects Versions: Servlets Get 2.1.2
Reporter: Antonio Sanso
Priority: Minor
A request of resource.$(Integer.MAX_VALUE+1).json or higher fails with
Invalid recursion selector value '2147483648' (400)
Arguably (due the really high number) IMHO would be more correct to transform the request to resource.infinity.json rather than return 400.
Should you agree patch to follow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SLING-2324) The recursion selector value for
the JsonRenderServlet is limited to Integer.MAX_VALUE
Posted by "Carsten Ziegeler (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164415#comment-13164415 ]
Carsten Ziegeler commented on SLING-2324:
-----------------------------------------
I agree - it's better to handle this situation gracefully than to throw an error
Happy to apply your patch :)
> The recursion selector value for the JsonRenderServlet is limited to Integer.MAX_VALUE
> --------------------------------------------------------------------------------------
>
> Key: SLING-2324
> URL: https://issues.apache.org/jira/browse/SLING-2324
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Get 2.1.2
> Reporter: Antonio Sanso
> Assignee: Carsten Ziegeler
> Priority: Minor
>
> A request of resource.$(Integer.MAX_VALUE+1).json or higher fails with
> Invalid recursion selector value '2147483648' (400)
> Arguably (due the really high number) IMHO would be more correct to transform the request to resource.infinity.json rather than return 400.
> Should you agree patch to follow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (SLING-2324) The recursion selector value for the
JsonRenderServlet is limited to Integer.MAX_VALUE
Posted by "Carsten Ziegeler (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-2324.
-------------------------------------
Resolution: Fixed
Fix Version/s: Servlets Get 2.1.4
Thanks for your patch Antonio - I've applied it in revision 1211523
> The recursion selector value for the JsonRenderServlet is limited to Integer.MAX_VALUE
> --------------------------------------------------------------------------------------
>
> Key: SLING-2324
> URL: https://issues.apache.org/jira/browse/SLING-2324
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Get 2.1.2
> Reporter: Antonio Sanso
> Assignee: Carsten Ziegeler
> Priority: Minor
> Fix For: Servlets Get 2.1.4
>
> Attachments: SLING-2324-patch.txt
>
>
> A request of resource.$(Integer.MAX_VALUE+1).json or higher fails with
> Invalid recursion selector value '2147483648' (400)
> Arguably (due the really high number) IMHO would be more correct to transform the request to resource.infinity.json rather than return 400.
> Should you agree patch to follow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (SLING-2324) The recursion selector value for the
JsonRenderServlet is limited to Integer.MAX_VALUE
Posted by "Antonio Sanso (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Sanso updated SLING-2324:
---------------------------------
Attachment: SLING-2324-patch.txt
Thanks Carsten, proposed patch attached.
I will happily leverage [0] (when committed) to integrate some unit test for this case.
[0] https://issues.apache.org/jira/browse/SLING-2320
> The recursion selector value for the JsonRenderServlet is limited to Integer.MAX_VALUE
> --------------------------------------------------------------------------------------
>
> Key: SLING-2324
> URL: https://issues.apache.org/jira/browse/SLING-2324
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Get 2.1.2
> Reporter: Antonio Sanso
> Assignee: Carsten Ziegeler
> Priority: Minor
> Attachments: SLING-2324-patch.txt
>
>
> A request of resource.$(Integer.MAX_VALUE+1).json or higher fails with
> Invalid recursion selector value '2147483648' (400)
> Arguably (due the really high number) IMHO would be more correct to transform the request to resource.infinity.json rather than return 400.
> Should you agree patch to follow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (SLING-2324) The recursion selector value for the
JsonRenderServlet is limited to Integer.MAX_VALUE
Posted by "Carsten Ziegeler (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler reassigned SLING-2324:
---------------------------------------
Assignee: Carsten Ziegeler
> The recursion selector value for the JsonRenderServlet is limited to Integer.MAX_VALUE
> --------------------------------------------------------------------------------------
>
> Key: SLING-2324
> URL: https://issues.apache.org/jira/browse/SLING-2324
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Get 2.1.2
> Reporter: Antonio Sanso
> Assignee: Carsten Ziegeler
> Priority: Minor
>
> A request of resource.$(Integer.MAX_VALUE+1).json or higher fails with
> Invalid recursion selector value '2147483648' (400)
> Arguably (due the really high number) IMHO would be more correct to transform the request to resource.infinity.json rather than return 400.
> Should you agree patch to follow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira