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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2013/01/11 11:20:12 UTC

[jira] [Created] (OAK-552) AssertionError in MicroKernel.commit()

Michael Dürig created OAK-552:
---------------------------------

             Summary: AssertionError in MicroKernel.commit()
                 Key: OAK-552
                 URL: https://issues.apache.org/jira/browse/OAK-552
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: mk
            Reporter: Michael Dürig


{code}
mk.commit("", "-\"/x/\"", null, null);
{code}

results in 
{code}
java.lang.AssertionError
	at org.apache.jackrabbit.oak.commons.PathUtils.concat(PathUtils.java:277)
	at org.apache.jackrabbit.mk.core.MicroKernelImpl.commit(MicroKernelImpl.java:437)
	at org.apache.jackrabbit.mk.MicroKernelImplTest.foo(MicroKernelImplTest.java:424)
{code}

since according to {{PathUtils}} {{/x/}} is not a valid path. 

The commit method should throw an {{IllegalArgumentException}} instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira