|
|
@ -376,7 +376,7 @@ public class ApplicationManagementPublisherAPIImpl implements ApplicationManagem
|
|
|
|
if (appName.length()>20) {
|
|
|
|
if (appName.length()>20) {
|
|
|
|
String msg = "Invalid app name, maximum length of the application name should be 20 characters.";
|
|
|
|
String msg = "Invalid app name, maximum length of the application name should be 20 characters.";
|
|
|
|
log.error(msg);
|
|
|
|
log.error(msg);
|
|
|
|
return Response.status(Response.Status.LENGTH_REQUIRED).build();
|
|
|
|
return Response.status(Response.Status.BAD_REQUEST).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ApplicationManager applicationManager = APIUtil.getApplicationManager();
|
|
|
|
ApplicationManager applicationManager = APIUtil.getApplicationManager();
|
|
|
|
if (applicationManager.isExistingAppName(appName, deviceType)) {
|
|
|
|
if (applicationManager.isExistingAppName(appName, deviceType)) {
|
|
|
|