You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2007/10/20 18:55:50 UTC

[jira] Resolved: (SLING-73) Provided SlingRequestContext to scripts

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

Felix Meschberger resolved SLING-73.
------------------------------------

    Resolution: Fixed

Added the requestContext scripting variable providing the SlingRequestContext in Rev. 586757.

If this would solve your problem, please close. Thanks.

> Provided SlingRequestContext to scripts
> ---------------------------------------
>
>                 Key: SLING-73
>                 URL: https://issues.apache.org/jira/browse/SLING-73
>             Project: Sling
>          Issue Type: Bug
>          Components: microsling
>            Reporter: Lars Trieloff
>            Assignee: Felix Meschberger
>         Attachments: microsling-save-session-on-post.patch, POST.esp
>
>
> POST scripts (e.g. attached POST.js) cannot have side-effects because the session is not saved after processing the script. Unfortunately the session is not made available to the script so the script cannot save the session itself (which I would consider an ugly workaround).
> If the SlingRequestContext would be provided as a scripting variable, the session would be available and could be saved.

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