XSLTOperation in javascript
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 98
- Joined: Tue Mar 06, 2018 2:07 pm
- Contact:
XSLTOperation in javascript
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.
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
AmeXio
nicolas.delobel at amexiogroup.com
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: XSLTOperation in javascript
Post by cristi_talau »
Hello,
This restriction is put in place as a security control to avoid running untrusted XSLT code provided by an user. You will need to implement your own operation that will load the XSLT script from a trusted location (e.g. a JAR file in the classpath) and only receive a couple of params from client-side code.
Best,
Cristian
This restriction is put in place as a security control to avoid running untrusted XSLT code provided by an user. You will need to implement your own operation that will load the XSLT script from a trusted location (e.g. a JAR file in the classpath) and only receive a couple of params from client-side code.
Best,
Cristian
-
- Posts: 98
- Joined: Tue Mar 06, 2018 2:07 pm
- Contact:
Re: XSLTOperation in javascript
Thanks Cristian for these information.
Regards,
Nicolas
Regards,
Nicolas
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
AmeXio
nicolas.delobel at amexiogroup.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service