You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dan Klco (JIRA)" <ji...@apache.org> on 2018/01/31 21:50:00 UTC

[jira] [Resolved] (SLING-7458) Index Out of Bounds in sling:getParents Tag / Function

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

Dan Klco resolved SLING-7458.
-----------------------------
    Resolution: Fixed

Fixed in https://github.com/apache/sling-org-apache-sling-scripting-jsp-taglib/commit/463596ca6a2436636ab762ddad1795b30e6dc91f

> Index Out of Bounds in sling:getParents Tag / Function
> ------------------------------------------------------
>
>                 Key: SLING-7458
>                 URL: https://issues.apache.org/jira/browse/SLING-7458
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: Scripting JSP-Taglib 2.2.6
>            Reporter: Dan Klco
>            Priority: Minor
>             Fix For: Scripting JSP-Taglib 2.2.8
>
>
> If the user specifies a depth greater than the depth of the resource used for the child note, the  sling:getParents Tag and Function will throw an Index Out of Bounds exception. The less-error prone behavior would be to return an empty iterator of parent resources.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)