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

NonExistingResource should extend SyntheticResource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3
    • API
    • None

    Description

      As discussed here [1] the NonExistingResource should also be a SyntheticResource because it is not actually reflected with a real resource but is returned from the ResourceResolver.resolve(HttpServletRequest) method when the request cannot be resolved to a real resource.

      In addition a new helper method should be added to the JcrResourceUtil:

      // return true if resource is a synthetic resource
      public static boolean isSyntheticResource(Resource resource);

      [1] http://markmail.org/message/vgtnh73uunouni4e

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: