Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5757

NonExistingResource.getParent() should not return null in case the parent is non-existing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: API 2.11.0
    • Fix Version/s: API 2.12.0
    • Component/s: API
    • Labels:
      None

      Description

      Currently NonExistingResource.getParent() returns null in case the parent does not exist either. According to the javadoc of Resource.getParent() null should only be returned when the current resource is already the root resource.
      Therefore NonExistingResource.getParent() should rather return a NonExistingResource as well, in case the parent does not exist.

      Compare with the discussion at http://www.mail-archive.com/dev@sling.apache.org/msg56294.html.

        Attachments

        1. SLING-5757-v01.patch
          5 kB
          Konrad Windszus

          Issue Links

            Activity

              People

              • Assignee:
                kwin Konrad Windszus
                Reporter:
                kwin Konrad Windszus
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: