You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Alexander Saar (JIRA)" <ji...@apache.org> on 2008/02/21 12:49:19 UTC
[jira] Created: (SLING-264) Allow sling scripts resolved by the
script resolver to be executed without request/response
Allow sling scripts resolved by the script resolver to be executed without request/response
-------------------------------------------------------------------------------------------
Key: SLING-264
URL: https://issues.apache.org/jira/browse/SLING-264
Project: Sling
Issue Type: Improvement
Components: Scripting
Reporter: Alexander Saar
Priority: Minor
It should be possible to reuse the sling infrastructure for execution of scripts without having a request or response in order to implement application functionality that is not triggered by a client request (eg triggered by an event).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (SLING-264) Allow sling scripts resolved by the
script resolver to be executed without request/response
Posted by "Alexander Saar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Saar closed SLING-264.
--------------------------------
Tested and works.
> Allow sling scripts resolved by the script resolver to be executed without request/response
> -------------------------------------------------------------------------------------------
>
> Key: SLING-264
> URL: https://issues.apache.org/jira/browse/SLING-264
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Reporter: Alexander Saar
> Assignee: Carsten Ziegeler
> Priority: Minor
> Attachments: script_execution_without_request.diff
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> It should be possible to reuse the sling infrastructure for execution of scripts without having a request or response in order to implement application functionality that is not triggered by a client request (eg triggered by an event).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SLING-264) Allow sling scripts resolved by the
script resolver to be executed without request/response
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-264.
------------------------------------
Resolution: Fixed
Hi,
I applied a slightly modified version of your patch: the instanceof check in the getReader method should check against Reader (not Resource).
Please cross check and close this bug.
Many thanks
> Allow sling scripts resolved by the script resolver to be executed without request/response
> -------------------------------------------------------------------------------------------
>
> Key: SLING-264
> URL: https://issues.apache.org/jira/browse/SLING-264
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Reporter: Alexander Saar
> Assignee: Carsten Ziegeler
> Priority: Minor
> Attachments: script_execution_without_request.diff
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> It should be possible to reuse the sling infrastructure for execution of scripts without having a request or response in order to implement application functionality that is not triggered by a client request (eg triggered by an event).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-264) Allow sling scripts resolved by the
script resolver to be executed without request/response
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated SLING-264:
-----------------------------------
Assignee: Carsten Ziegeler
Remaining Estimate: 0h
Original Estimate: 0h
> Allow sling scripts resolved by the script resolver to be executed without request/response
> -------------------------------------------------------------------------------------------
>
> Key: SLING-264
> URL: https://issues.apache.org/jira/browse/SLING-264
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Reporter: Alexander Saar
> Assignee: Carsten Ziegeler
> Priority: Minor
> Attachments: script_execution_without_request.diff
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> It should be possible to reuse the sling infrastructure for execution of scripts without having a request or response in order to implement application functionality that is not triggered by a client request (eg triggered by an event).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-264) Allow sling scripts resolved by the
script resolver to be executed without request/response
Posted by "Alexander Saar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Saar updated SLING-264:
---------------------------------
Attachment: script_execution_without_request.diff
This patch extends SlingBindings with an additional property for the reader that provides script input and changes the DefaultSlingScript implementation to attach script input reader and request separately. The verification of SlingBindings was changed to check only for presence of a logger in case no request is available. If there is a request object attached to the provided SlingBindings the original checks for response, resouce and so on are applied to ensure that scripts executed inside requests can rely on these variables.
> Allow sling scripts resolved by the script resolver to be executed without request/response
> -------------------------------------------------------------------------------------------
>
> Key: SLING-264
> URL: https://issues.apache.org/jira/browse/SLING-264
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Reporter: Alexander Saar
> Priority: Minor
> Attachments: script_execution_without_request.diff
>
>
> It should be possible to reuse the sling infrastructure for execution of scripts without having a request or response in order to implement application functionality that is not triggered by a client request (eg triggered by an event).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.