[
https://issues.apache.org/jira/browse/NIFI-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann resolved NIFI-7172.
------------------------------------
Fix Version/s: 1.14.0
Resolution: Fixed
As noted in PR discussion, {{java.util.Properties}} removes leading white space
from property values. The resolution removes trailing spaces from property
values.
> Trim leading and trailing space from nifi.properties values
> -----------------------------------------------------------
>
> Key: NIFI-7172
> URL: https://issues.apache.org/jira/browse/NIFI-7172
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Configuration, Configuration Management
> Affects Versions: 1.11.2
> Reporter: Andy LoPresto
> Assignee: Eric Olson
> Priority: Major
> Labels: configuration, patch, pull-request-available
> Fix For: 1.14.0
>
> Time Spent: 3h 20m
> Remaining Estimate: 0h
>
> Many users have complained about the difficulty of diagnosing unexpected
> behavior when a {{nifi.properties}} value does not match the desired value
> perfectly. Many property accessors perform an exact string match, and
> leading/trailing spaces can cause this to fail silently. This is especially
> to diagnose because it is often not apparent in the text editors used to
> display the properties file or log messages.
> The property value should have both leading and trailing space trimmed before
> being consumed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)