[ 
https://issues.apache.org/jira/browse/SLING-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tobias Bocanegra reopened SLING-222:
------------------------------------


well, the infinite loop is fixed, but it still does not work...the changed 
lines...

        if (resource == null) {
            response.sendError(HttpServletResponse.SC_NOT_FOUND, "Resource not 
found in include: " + absPath);
            
            // The code below was previously used but causes SLING-222...not 
sure what's best
            // rd.getSlingMainServlet().includeServlet(request, response, path);

        } else {

...now cause the include just to fail. the former version was actually the 
correct behavior (except of the infinite loop, of course :-)

btw: the NOT found never bubbles up and just a unhelpful error message is 
displayed in the log:

06.02.2008 00:07:54 *ERROR* o.a.s.s.r.SlingServletResolver: Original error 
class org.apache.sling.api.SlingServletException
org.apache.sling.api.SlingServletException: 
org.apache.sling.scripting.jsp.jasper.JasperException: null
        at 
org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:64)
        at 
org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:130)

> using request.getRequestDispatcher() with an URL causes infinite loop
> ---------------------------------------------------------------------
>
>                 Key: SLING-222
>                 URL: https://issues.apache.org/jira/browse/SLING-222
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Tobias Bocanegra
>
> example:
>                 RequestDispatcher dispatcher = 
> request.getRequestDispatcher("/foo/bar.teaser.html");
>                 dispatcher.include(request, response);
> causes infinite loop. where as a direct request to "/foo/bar.teaser.html" 
> works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to