sling.include() provides a infinite loop
----------------------------------------

                 Key: SLING-104
                 URL: https://issues.apache.org/jira/browse/SLING-104
             Project: Sling
          Issue Type: Bug
          Components: microsling
            Reporter: Christophe Lombart


I have created a new esp template for the nt:unstructured type which contains 
the following code : 
<%= sling.include("/content/testing/1194989095463.html") %> 

If I'm retrieving a resource based on this type (eg. : /content/testing.html), 
I get an infinitive loop.  It seems that Microsling tries to retrieve always 
the same content (/content/testing.html).  

I have the same behavior with other paths and with velocity templates.

Here is the log : 

13.11.2007 22:42:43 *INFO * MicroslingResourceResolver: Path 
'/content/testing.html' does not resolve to an Item 
(MicroslingResourceResolver.java, line 274)
13.11.2007 22:42:43 *INFO * MicroslingResourceResolver: Found Resource at path 
'/content/testing' (MicroslingResourceResolver.java, line 270)
13.11.2007 22:42:43 *DEBUG* MicroslingServletResolver: No Servlet found for 
resource type nt:unstructured (MicroslingServletResolver.java, line 127)
13.11.2007 22:42:43 *DEBUG* MicroslingScriptResolver: Looking for script with 
filename=html.* under /sling/scripts/nt/unstructured 
(MicroslingScriptResolver.java, line 194)
13.11.2007 22:42:43 *INFO * MicroslingScriptResolver: Found nt:file script node 
/sling/scripts/nt/unstructured/html.esp for Resource=JcrNodeResource, 
type=nt:unstructured, path=/content/testing (MicroslingScriptResolver.java, 
line 228)

13.11.2007 22:45:02 *INFO * MicroslingResourceResolver: Path 
'/content/testing.html' does not resolve to an Item 
(MicroslingResourceResolver.java, line 274)
13.11.2007 22:45:02 *INFO * MicroslingResourceResolver: Found Resource at path 
'/content/testing' (MicroslingResourceResolver.java, line 270)
13.11.2007 22:45:02 *DEBUG* MicroslingServletResolver: No Servlet found for 
resource type nt:unstructured (MicroslingServletResolver.java, line 127)
13.11.2007 22:45:02 *DEBUG* MicroslingScriptResolver: Looking for script with 
filename=html.* under /sling/scripts/nt/unstructured 
(MicroslingScriptResolver.java, line 194)
13.11.2007 22:45:02 *INFO * MicroslingScriptResolver: Found nt:file script node 
/sling/scripts/nt/unstructured/html.esp for Resource=JcrNodeResource, 
type=nt:unstructured, path=/content/testing (MicroslingScriptResolver.java, 
line 228)

13.11.2007 22:45:56 *INFO * MicroslingResourceResolver: Path 
'/content/testing.html' does not resolve to an Item 
(MicroslingResourceResolver.java, line 274)
13.11.2007 22:45:56 *INFO * MicroslingResourceResolver: Found Resource at path 
'/content/testing' (MicroslingResourceResolver.java, line 270)
13.11.2007 22:45:56 *DEBUG* MicroslingServletResolver: No Servlet found for 
resource type nt:unstructured (MicroslingServletResolver.java, line 127)
13.11.2007 22:45:56 *DEBUG* MicroslingScriptResolver: Looking for script with 
filename=html.* under /sling/scripts/nt/unstructured 
(MicroslingScriptResolver.java, line 194)
13.11.2007 22:45:56 *INFO * MicroslingScriptResolver: Found nt:file script node 
/sling/scripts/nt/unstructured/html.esp for Resource=JcrNodeResource, 
type=nt:unstructured, path=/content/testing (MicroslingScriptResolver.java, 
line 228)



-- 
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