You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Pontus Amberg <po...@gmail.com> on 2014/03/17 21:28:44 UTC

Resource rendered by .esp script is only rendered on first request

I'm not sure but I think I might have encountered a problem in the current
trunk
with resources rendered by .esp scripts. Steps to reproduce:

1. Create a new file called test.esp with this content:
    <html>
    <body>
      <%="Current node path: "+currentNode.path%><br/>
    </body>
    </html>
2. Copy the file to your repository at /apps/sling/servlet/default
3. Perform a request where the new script shall render the content
    http://localhost:8080/sling/.test
    The resource shall now have been rendered correctly by the ESP script
4. Reload the content of the browser, this and any further request will
    just generate an IOException

Any request after the first does (at least on my setup) result in an
IOException.
I can see in the <sling-home>/logs/error.log that the IOException is
preceded by
an RepositoryException. I have attached the entries from the error log and
also
saved it on pastebin [1]

Is this a problem in the current trunk or is it just on my setup? I will
create an
issue in Jira if someone just confirms that this actually is a problem in
the
current trunk.

/Pontus

[1] http://pastebin.com/T19MNJnr