Otto Fowler created NIFI-6365:
---------------------------------

             Summary: 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


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)

Reply via email to