From ec3da7144c1b8d5825ff12f9c307dc1f11a2d7e9 Mon Sep 17 00:00:00 2001 From: exceptionfactory Date: Thu, 7 Dec 2023 08:40:53 -0600 Subject: [PATCH] NIFI-12475 Disabled Bypass Validation by Default in PutMongoRecord - Updated property description to indicate that bypass validation is a Privilege Action that can cause authorization errors. Signed-off-by: Pierre Villard This closes #8139. --- .../apache/nifi/processors/mongodb/PutMongoRecord.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongoRecord.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongoRecord.java index 8ae33fad5f..f86119bfc2 100644 --- a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongoRecord.java +++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongoRecord.java @@ -115,9 +115,13 @@ public class PutMongoRecord extends AbstractMongoProcessor { static final PropertyDescriptor BYPASS_VALIDATION = new PropertyDescriptor.Builder() .name("bypass-validation") .displayName("Bypass Validation") - .description("Bypass schema validation during insert/upsert") + .description(""" + Enable or disable bypassing document schema validation during insert or update operations. + Bypassing document validation is a Privilege Action in MongoDB. + Enabling this property can result in authorization errors for users with limited privileges. + """) .allowableValues("True", "False") - .defaultValue("True") + .defaultValue("False") .required(true) .addValidator(StandardValidators.BOOLEAN_VALIDATOR) .build();