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

Better error message for getPrimaryItem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0.7, 1.1.1
    • jcr
    • None

    Description

      NodeImpl.getPrimaryItem can throw an exception with the following (fixed) error message:

      No primary item present on node getPrimaryItem
      

      It looks like the intention was to include the path, but in the source code, "this" refers to the inner class, not the node.

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: