Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
Engine 2.0.4
-
None
-
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
- duplicates
-
SLING-1087 RedirectServlet must not redirect if the response is committed or in included requests
- Closed