ChrisSamo632 commented on a change in pull request #4854:
URL: https://github.com/apache/nifi/pull/4854#discussion_r587189163



##########
File path: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-properties-loader/src/main/java/org/apache/nifi/properties/NiFiPropertiesLoader.java
##########
@@ -174,6 +177,18 @@ ProtectedNiFiProperties 
readProtectedPropertiesFromDisk(File file) {
             rawProperties.load(inStream);
             logger.info("Loaded {} properties from {}", rawProperties.size(), 
file.getAbsolutePath());
 
+            // Trim whitespace from each property. If property is multi-line, 
remove anything after the first line break.

Review comment:
       Yeah, I realised the quotes issue after mashing the comment (i.e. just 
chasing it to handle surrounding quotes instead of whitespace)
   
   Allowing for multi-line properties is good and as I say, this would be 
something of an edge case that isn't likely to happen regularly. If the 
standard property reader already removes such things anyway then as you say, 
maybe better to leave as-is




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to