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

Correct resource super type handling

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

Details

    Description

      A resource should only return a super resource type if it has configured one.
      Currenty the jcr resource node implementation does a lookup of the resource representing its resource type to get the resource super type from there if it doesn't have a super type set.
      This logic should solely be called from the script resolver (and not be tied to a resource implementation).

      In this respect, the bundle resource should return "sling/bundle/resource" as it's super type and not null

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment