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

SlingRequestDispatcher must not include redirect resources as is

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Engine 2.0.4
    • None
    • Engine
    • None

    Description

      When including a resource the SlingRequestDispatcher calls the ResourceResolver.resolve() method if the dispatcher has been created with a path instead of a resource. This method can return a redirect resource (a synthetic resource with resource type sling:redirect).

      In the case of request dispatching rendering a redirect resource will probably not be the desired result.

      Thus the SlingRequestDispatcher.dispatch method should be modified around line 145 (in Rev. 788719) to probably first call ResourceResolver.getResource() and only try resolve() if getResource() returns null.

      (info: resolve is called for ease of use to handle selector and extension overwrites for the included resource)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: