The new JDK updates or April 19th set hard limits on the number of nodes in an xpath expression. We now get these errors:
net.sf.okapi.common.exceptions.OkapiException: javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'. We will need to override the new restrictions. But where can we do this globally?Here are the update notes from the JDK:
Hi Yves,
I made a commit directly to dev as the changes were small. I experimented and the best way to enable unlimited operators for both xpath and xslt factories, without disabling other security features is using these lines:
// set xpath node limits to unlimited // recent JDK releases (4/2022) set a hard limit for increased security System.setProperty("jdk.xml.xpathExprGrpLimit", "0"); System.setProperty("jdk.xml.xpathExprOpLimit", "0"); System.setProperty("jdk.xml.xpathTotalOpLimit", "0"); Jim
--
You received this message because you are subscribed to the Google Groups "okapi-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to okapi-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/okapi-devel/0dadd261-dc6b-4f4e-ad0e-d3f4e718eae5n%40googlegroups.com.