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

Julian Reschke updated SLING-12824:
-----------------------------------
    Description: 
I keep getting confused how to check the result of 
{{ResourceUtil.getParent(String)}} for the root path.

https://sling.apache.org/apidocs/sling9/org/apache/sling/api/resource/ResourceUtil.html#getParent-java.lang.String-

gives two reasons for the return value being null.

https://sling.apache.org/apidocs/sling9/org/apache/sling/api/resource/ResourceUtil.html#getParent-java.lang.String-

gives only one reason, but I suspect this in incorrect.

so, FWIW, what is the return value for {{getParent("/")}}? 

  was:
I keep getting confused how to check the result of 
{{ResourceUtil.getParent(String)}} for the root path.

https://sling.apache.org/apidocs/sling9/org/apache/sling/api/resource/ResourceUtil.html#getParent-java.lang.String-

gives two reasons for the return value being null.

https://sling.apache.org/apidocs/sling9/org/apache/sling/api/resource/ResourceUtil.html#getParent-java.lang.String-

gives only one reason, but I suspect this in incorrect.

so, FWIW, what is the return vslur for {{getParent("/")}}? 


> ResourceUtil: add "'isRoot(String path)"
> ----------------------------------------
>
>                 Key: SLING-12824
>                 URL: https://issues.apache.org/jira/browse/SLING-12824
>             Project: Sling
>          Issue Type: Wish
>          Components: API
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Minor
>
> I keep getting confused how to check the result of 
> {{ResourceUtil.getParent(String)}} for the root path.
> https://sling.apache.org/apidocs/sling9/org/apache/sling/api/resource/ResourceUtil.html#getParent-java.lang.String-
> gives two reasons for the return value being null.
> https://sling.apache.org/apidocs/sling9/org/apache/sling/api/resource/ResourceUtil.html#getParent-java.lang.String-
> gives only one reason, but I suspect this in incorrect.
> so, FWIW, what is the return value for {{getParent("/")}}? 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to