This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-97a3a8ea-9f88-40d1-b919-696d6e474473 XWIKI-23232 Open

Support providing the HTTP session via the context parameter of the Async Macro

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1299c838-5c7c-41f9-acb0-232ee5138cfd Mohamed Boussaa created this issue on 22/May/25 17:37
 
Summary: Support providing the HTTP session via the context parameter of the Async Macro
Issue Type: cid:jira-generated-image-avatar-97a3a8ea-9f88-40d1-b919-696d6e474473 Improvement
Affects Versions: 16.10.8
Assignee: Unassigned
Attachments: office-macro-async.png
Components: Rendering - Async
Created: 22/May/25 17:37
Priority: cid:jira-generated-image-static-major-e2b04d06-eb09-41d5-985e-c6ba4f499a3c Major
Reporter: Mohamed Boussaa
Description:

Add the possibility to provide the user HTTP session in the "Context" parameter of the [Async Macro|https://extensions.xwiki.org/xwiki/bin/view/Extension/Async%20Macro/|https://extensions.xwiki.org/xwiki/bin/view/Extension/Async%20Macro/].] because the session object could be used by certain macros or scripts.

For example, putting the Office Macro in an Async macro will currently return an error.

{{async}}
{{office reference="file.xlsx" /}}
{{/async}}

See screenshot :

43676_office-macro-async.png

 

 
 

1 update

 
cid:jira-generated-image-avatar-1299c838-5c7c-41f9-acb0-232ee5138cfd Changes by Mohamed Boussaa on 22/May/25 17:38
 
Description: Add the possibility to provide the user HTTP session in the "Context" parameter of the [Async Macro| [ https://extensions.xwiki.org/xwiki/bin/view/Extension/Async %20Macro Macro /] |https://extensions.xwiki.org/xwiki/bin/view/Extension/Async%20Macro/].] because the session object could be used by certain macros or scripts.

For example, putting the [Office Macro|https://extensions.xwiki.org/xwiki/bin/view/Extension/Office%20Macro] in an Async macro will currently return an error.
{code:java}
{{async}}
{{office reference="file.xlsx" /}}
{{/async}}{code}
See screenshot :

!office-macro-async.png|width=607,height=414!