[
https://issues.apache.org/jira/browse/NIFI-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858825#comment-16858825
]
Otto Fowler commented on NIFI-6365:
-----------------------------------
see also ongoing
https://apachenifi.slack.com/archives/C0L9VCD47/p1559919259093000
> Creation of Controller Services should handle empty strings as it does nulls
> ----------------------------------------------------------------------------
>
> Key: NIFI-6365
> URL: https://issues.apache.org/jira/browse/NIFI-6365
> Project: Apache NiFi
> Issue Type: Task
> Reporter: Otto Fowler
> Priority: Major
>
> If the web api is passed service ids as empty strings instead of nulls, the
> result is an error that the service could not be found with id "". This can
> be confusing, especially since the service id may not be the one being
> created, but rather something referenced.
> the api should treat empty strings the same as if they were nulls, either
> through a test, logically
> {code:java}
> if ( controllerService.id() != null) {
> ...
> }
> // should be
> if ( !StringUtils.isNullOrEmpty(controllerService.id()) {
> ...
> }
> {code}
> or something that explicitly cleans up the DTOs
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)