XSLTOperation in javascript
Posted: Mon Mar 07, 2022 2:02 pm
Hello,
From javascript, I tried to perform an XSLT action:
But I have the following message:
Or, do I have to implement a specific action in Java with @WebappRestSafe annotation?
Thanks.
From javascript, I tried to perform an XSLT action:
Code: Select all
TransformToOlAction.prototype.actionPerformed = function (callback) {
this.editor.getActionsManager().invokeOperation(
'ro.sync.ecss.extensions.commons.operations.XSLTOperation', {
action: 'Replace',
script: '${framework}/lib/element-to-ol.xsl'
}, callback);
};
Is it possible to resolve this problem directly in javascript code?For security reasons, the execution of ro.sync.ecss.extensions.commons.operations.XSLTOperation with user-provided parameters is blocked. If the operation is safe, consider annotating it with ro.sync.ecss.extensions.api.webapp.WebappRestSafe.
Or, do I have to implement a specific action in Java with @WebappRestSafe annotation?
Thanks.