exceptionfactory commented on code in PR #10247:
URL: https://github.com/apache/nifi/pull/10247#discussion_r2307848685
##########
nifi-commons/nifi-xml-processing/src/main/java/org/apache/nifi/xml/processing/validation/StandardSchemaValidator.java:
##########
@@ -46,6 +47,8 @@ public void validate(final Schema schema, final Source
source) {
try {
validator.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING,
ProcessingFeature.SECURE_PROCESSING.isEnabled());
+ validator.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, "");
+ validator.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "");
Review Comment:
Thanks for noting that detail. Actually, instead of referencing
`ProcessingFeature.SECURE_PROCESSING.isEnabled()`, creating a private static
variable named `SECURE_PROCESSING_ENABLED` and setting that to `true` in this
class should work. See `StandardTransformProvider` for a similar approach.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]