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

Incorrect assertion message in PathUtils#isAncestor()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.2, 1.4
    • Component/s: commons
    • Labels:
      None

      Description

      In PathUtils#isAncestor() there is a copy& paste error:

      assert isValid(ancestor) : "Invalid parent path ["+ancestor+"]";
      assert isValid(path) : "Invalid path ["+ancestor+"]";
      

      The second line should be:

      assert isValid(path) : "Invalid path ["+path+"]";
      

        Attachments

          Activity

            People

            • Assignee:
              mduerig Michael Dürig
              Reporter:
              jsedding Julian Sedding

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment