[ 
https://issues.apache.org/jira/browse/NIFI-6705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-6705.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> getSupportedDynamicPropertyDescriptor return PD with non-matching name
> ----------------------------------------------------------------------
>
>                 Key: NIFI-6705
>                 URL: https://issues.apache.org/jira/browse/NIFI-6705
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework, Core UI
>    Affects Versions: 1.10.0
>            Reporter: Peter Radden
>            Priority: Minor
>
> If I want to allow a dynamic property to be case-insensitive, the obvious way 
> would seem to be for the getSupportedDynamicPropertyDescriptor to return a 
> PropertyDescriptor with lower-case name as in this:
> {code:java}
> public PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String 
> name)
> {
>     final String lowerName = name.toLowerCase();
>     if (lowerName.equals("somename"))
>     {
>         return new PropertyDescriptor.Builder()
>             .name(lowerName)
>             .addValidator(Validator.VALID)
>             .build();
>     }
>     ...
> }{code}
> Entering the lower-case name explicitly is fine, but if any other casing is 
> used, the UI breaks, and the property is not added.
> My feeling is that the name provided by the PropertyDescriptor should 
> override the provided name.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to