You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2016/07/11 13:00:13 UTC

[jira] [Created] (JCR-3992) JcrUtils.getOrCreateByPath broken by JCR-3987

Julian Reschke created JCR-3992:
-----------------------------------

             Summary: JcrUtils.getOrCreateByPath broken by JCR-3987
                 Key: JCR-3992
                 URL: https://issues.apache.org/jira/browse/JCR-3992
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-jcr-commons
    Affects Versions: 2.13.0
            Reporter: Julian Reschke
            Assignee: Julian Reschke


The code introduced with OAK-3987 fails for an input of

   /rep:security/rep:authorizables/rep:groups/a/b/c

as, after discovering that

   /rep:security/rep:authorizables/rep:groups

exists, it computes a remaining path of

   /b/c

instead of

   a/b/c



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

Re: [jira] [Created] (JCR-3992) JcrUtils.getOrCreateByPath broken by JCR-3987

Posted by Carsten Ziegeler <cz...@apache.org>.
Julian Reschke wrote

> 
> So we managed to not only break the code, but also make a release out of
> it. I only noticed that when a ran unit tests on Oak using this
> Jackrabbit version.
> 
> I'm really sorry.
> 
Not your fault, it's rather mine providing this poor patch.

Carsten
 
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Re: [jira] [Created] (JCR-3992) JcrUtils.getOrCreateByPath broken by JCR-3987

Posted by Julian Reschke <ju...@greenbytes.de>.
On 2016-07-11 15:00, Julian Reschke (JIRA) wrote:
> Julian Reschke created JCR-3992:
> -----------------------------------
>
>              Summary: JcrUtils.getOrCreateByPath broken by JCR-3987
>                  Key: JCR-3992
>                  URL: https://issues.apache.org/jira/browse/JCR-3992
>              Project: Jackrabbit Content Repository
>           Issue Type: Bug
>           Components: jackrabbit-jcr-commons
>     Affects Versions: 2.13.0
>             Reporter: Julian Reschke
>             Assignee: Julian Reschke
>
>
> The code introduced with OAK-3987 fails for an input of
>
>    /rep:security/rep:authorizables/rep:groups/a/b/c
>
> as, after discovering that
>
>    /rep:security/rep:authorizables/rep:groups
>
> exists, it computes a remaining path of
>
>    /b/c
>
> instead of
>
>    a/b/c
>

So we managed to not only break the code, but also make a release out of 
it. I only noticed that when a ran unit tests on Oak using this 
Jackrabbit version.

I'm really sorry.

I'm in the process of fixing this (including a minimal test case that 
reproduces the problem).

Once that is committed, I'll temporarily bump up Oak's Jackrabbit 
dependencies from the now old 2.13.0-SNAPSHOT to 2.13.1-SNAPSHOT in 
order to prevent down-stream problems.

Once *that* is done, I'll cut another 2.13.* release.

Best regards, Julian