dxa-web-application-java
dxa-web-application-java copied to clipboard
fix for issue #86 - Possible classpath scanning issues by using XPathFactory.newInstance()
fixes #86 - Possible classpath scanning issues by using XPathFactory.newInstance()
This PR solves actually solves two things:
- The classpath scanning issues is prevented by avoiding
XPathFactory.newInstance() - The
DefaultRichTextProcessorno longer uses theXPathResolverwhich is not thread-safe.
The DefaultRichTextProcessor is now using the new thread-safe and classpath-scanning-proof XPathExpressionResolver instead of the XPathResolver. The XPathResolver should be avoided and is marked as deprecated.
The code in this PR is undergoing load testing and endurance testing on a DXA 1.5 based production environment. I think it is pretty solid :)