Bug description
Hello,
we performed a quarkus update from 3.38.1 to 3.39.4 today and the camel quarkus xslt-saxon component threw the following error: net.sf.saxon.trans.XPathException: URI scheme 'file' has been disallowed.
This seems to be related to recent security features. We found the following workaround, by adding the transformer factory:
public class SaxonProducer {
@Produces
@Singleton
@Unremovable
@Named("saxonTf")
public TransformerFactory saxonTransformerFactory() throws TransformerConfigurationException {
TransformerFactoryImpl factory = new TransformerFactoryImpl();
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "file");
return factory;
}
}
We did not find anything in the xslt-saxon documentation that enables easier configuration. Would appreciate knowing if we missed an obvious solution or if this is bug.
Thank you for your work.
Bug description
Hello,
we performed a quarkus update from 3.38.1 to 3.39.4 today and the camel quarkus xslt-saxon component threw the following error:
net.sf.saxon.trans.XPathException: URI scheme 'file' has been disallowed.This seems to be related to recent security features. We found the following workaround, by adding the transformer factory:
We did not find anything in the xslt-saxon documentation that enables easier configuration. Would appreciate knowing if we missed an obvious solution or if this is bug.
Thank you for your work.