Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-552

AssertionError in MicroKernel.commit()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14
    • mk
    • None

    Description

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

      results in

      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)
      

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

      The commit method should throw an IllegalArgumentException instead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: