[ 
https://issues.apache.org/jira/browse/NIFI-9336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17452548#comment-17452548
 ] 

ASF subversion and git services commented on NIFI-9336:
-------------------------------------------------------

Commit 2b415de912879dc92995a482d44b7092e18f44c8 in nifi's branch 
refs/heads/main from M Tien
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2b415de ]

NIFI-9336 - Show icon for property values with leading or trailing whitespace 
(#5559)

* NIFI-9336 - Show icon in processor and controller services configurations 
when property values contain leading or trailing whitespace

* - Address PR feedback

* - Fix a bug to clean up tooltips to prevent a DOM leak

This closes #5559 

> When configuring component properties, UI should flag/make obvious when there 
> is whitespace
> -------------------------------------------------------------------------------------------
>
>                 Key: NIFI-9336
>                 URL: https://issues.apache.org/jira/browse/NIFI-9336
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core UI
>    Affects Versions: 1.15.0
>            Reporter: Mark Payne
>            Assignee: M Tien
>            Priority: Major
>             Fix For: 1.16.0
>
>         Attachments: whitespace-awareness.png
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> It is a very common problem that users will copy & paste values into the 
> property configuration for a processor/controller service/etc. And this often 
> results in unwanted white space at the beginning or end of the property value 
> (especially the end). This can have very confusing results, like indicating 
> that a hostname cannot be found or that credentials are invalid, etc. but the 
> issue is not obvious when an error message looks like:
> {{No route to host: 1.1.1.1}}
> At the same time, we cannot simply have NiFi trim all property values, 
> because sometimes white space is important. For example, Merge Content allows 
> a header/footer/demarcator which may well intentionally include whitespace.
> While we could add an indicator to Property Descriptors to address this 
> issue, such as:
>  {{.trimWhiteSpace(true)}}
> it will be easy to forget adding that to the Property Descriptor, and if we 
> default it to true, it would change behavior of many processors unexpectedly.
> Since we cannot trim the values automatically, the UI should flag this when 
> configuring property values, making it very clear that there is leading or 
> trailing whitespace.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to