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

ResourceUtil.isA() fails if resource has a type, whose super type is not readable

    XMLWordPrintableJSON

Details

    Description

      • define a resource at /content/component/foo whose type is myapp/components/bar
      • define bar at /apps/myapp/components/bar
      • on /apps/myapp/components/bar, set sling:resourceSuperType as /libs/components/bar2

      If resolver from resource.getResourceResolver() cannot access /libs/components/bar2, then ResouceUtil.isA(resource, "components/bar2") returns false, otherwise it returns true.

      There could be an argument that it should not return true in any case, however, if you set resourceSuperType on resource as "components/bar2", then it returns true with current implementation.

      At least one of these is wrong, I think.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            tysonnorris Tyson Norris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: