[ACE-3783] onActionSimpleRepoAction JS function does not allow for asynchronous action execution Created: 10-Feb-15 Updated: 01-Dec-16 Resolved: 03-Dec-15
|Project:||Alfresco One Platform|
|Fix Version/s:||Community Edition 201512 EA, 5.1|
|Reporter:||Charlie Halford (Inactive)||Assignee:||Closed Issues|
|Remaining Estimate:||0 minutes|
|Time Spent:||1 week, 1 hour|
|Original Estimate:||Not Specified|
The onActionSimpleRepoAction function in share/components/documentlibrary/actions.js defines the wrong webscript URL, if the calling action wishes to execute asynchronously.
The ActionQueuePost webscript accepts a webscript parameters, async, which ensures that the action being fired is executed asynchronously. The only way to add this webscript parameter from onActionSimpleRepoAction is to add an additonal URI template variable to the webscript name.
Line 1042 in actions.js should have:
With this change, an action defined in share-config-custom.xml can include an async parameter, and have that parameter passed through to the Action Queue webscript, enabling asynchronous execution.
|Comment by Kevin Roast [X] (Inactive) [ 10-Feb-15 ]|
Thank you for raising the issue and supplying the suggested fix.
|Comment by Alex Mukha [ 03-Aug-15 ]|
I suppose the solution should be changed a little.
The configuration will be passed to Alfresco.doclib.Actions.onActionSimpleRepoAction, which needs modifications. Please, review the changes in r109473.
|Comment by Rodica Sutu [ 29-Oct-15 ]|
Could someone please advice how to test this issue?