NIFI-10260 Changed display name and description of Validate DTD properties

- Set Allow DTD as display name in EvaluateXPath and EvaluateXQuery

This closes #6230

Co-authored-by: David Handermann <exceptionfactory@apache.org>
Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Nandor Soma Abonyi 2022-07-21 18:02:03 +02:00 committed by exceptionfactory
parent eab687ee50
commit 302bdbfb11
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
2 changed files with 6 additions and 2 deletions

View File

@ -129,8 +129,10 @@ public class EvaluateXPath extends AbstractProcessor {
.build();
public static final PropertyDescriptor VALIDATE_DTD = new PropertyDescriptor.Builder()
.displayName("Allow DTD")
.name("Validate DTD")
.description("Specifies whether or not the XML content should be validated against the DTD.")
.description("Allow embedded Document Type Declaration in XML. "
+ "This feature should be disabled to avoid XML entity expansion vulnerabilities.")
.required(true)
.allowableValues("true", "false")
.defaultValue("false")

View File

@ -144,8 +144,10 @@ public class EvaluateXQuery extends AbstractProcessor {
.build();
public static final PropertyDescriptor VALIDATE_DTD = new PropertyDescriptor.Builder()
.displayName("Allow DTD")
.name("Validate DTD")
.description("Specifies whether or not the XML content should be validated against the DTD.")
.description("Allow embedded Document Type Declaration in XML. "
+ "This feature should be disabled to avoid XML entity expansion vulnerabilities.")
.required(true)
.allowableValues("true", "false")
.defaultValue("false")