in src/main/java/org/apache/sling/xss/impl/XSSFilterImpl.java [326:341]
private void setActivePolicy(Resource policyResource) {
activePolicy = new AntiSamyPolicy(false, policyResource.getPath());
try (InputStream policyStream = activePolicy.read()) {
setPolicyHandler(new PolicyHandler(policyStream));
logger.info("Installed policy from {}.", activePolicy.path);
} catch (Exception e) {
activePolicy = null;
Throwable[] suppressed = e.getSuppressed();
if (suppressed.length > 0) {
for (Throwable t : suppressed) {
logger.error("Unable to load policy from " + policyResource.getPath(), t);
}
}
logger.error("Unable to load policy from " + policyResource.getPath(), e);
}
}