You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2015/08/12 11:08:46 UTC

[jira] [Resolved] (OAK-3218) UserProvider.getFolderPath may throw StringIndexOutOfBoundsException

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

angela resolved OAK-3218.
-------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.4

fixed at r1695450.
an intermediate path resolving to the configured user/group root (either by passing in empty string or the corresponding absolute is path) is treated like {{null}}.
note, that while writing some tests i additionally found a bug in {{NodeUtil.addOrCreateTree}} that would result in a path containing a parent or current path element; fixed as well and added a dedicated {{NodeUtil}} test class.

> UserProvider.getFolderPath may throw StringIndexOutOfBoundsException
> --------------------------------------------------------------------
>
>                 Key: OAK-3218
>                 URL: https://issues.apache.org/jira/browse/OAK-3218
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: angela
>            Assignee: angela
>            Priority: Minor
>             Fix For: 1.3.4
>
>
> the 'intermediate' path passed to the createUser or createGroup is empty string (instead of null) or evaluates to empty string when being converted from absolute path, UserProvider.getFolderPath throws StringIndexOutOfBoundsException. This should obviously be avoided; proposed fix: treat empty relative path the same as {{null}} and fall back to the implementation defined content structure.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)