Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
3.1.0
-
None
Description
In ServiceClient.actionCreate() :
ServiceApiUtil.validateNameFormat(serviceName, getConfig()); ServiceApiUtil.validateAndResolveService(service, fs, getConfig());
However, the ServiceApiUtil.validateAndResolveService(...), also validates the service name
if (StringUtils.isEmpty(service.getName())) { throw new IllegalArgumentException( RestApiErrorMessages.ERROR_APPLICATION_NAME_INVALID); } validateNameFormat(service.getName(), conf);
Also, ServiceClientTest which is a mock client for the ApiServer, can perform the actual validation which is performed by the ServiceClient