mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix skip app release error
This commit is contained in:
commit
0084fbbf36
@ -1283,13 +1283,13 @@ public class ApplicationManagerImpl implements ApplicationManager {
|
|||||||
this.changeLifecycleState(applicationReleaseDTO, lifecycleChanger);
|
this.changeLifecycleState(applicationReleaseDTO, lifecycleChanger);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (applicationDTO.getType().equals("ENTERPRISE") || applicationDTO.getType().equals("PUBLIC") ) {
|
||||||
|
persistAppIconInfo(applicationReleaseDTO);
|
||||||
|
}
|
||||||
applicationReleaseEntities.add(applicationReleaseDTO);
|
applicationReleaseEntities.add(applicationReleaseDTO);
|
||||||
}
|
}
|
||||||
applicationDTO.setId(appId);
|
applicationDTO.setId(appId);
|
||||||
applicationDTO.setApplicationReleaseDTOs(applicationReleaseEntities);
|
applicationDTO.setApplicationReleaseDTOs(applicationReleaseEntities);
|
||||||
if (applicationDTO.getType().equals("ENTERPRISE") || applicationDTO.getType().equals("PUBLIC") ) {
|
|
||||||
persistAppIconInfo(applicationReleaseDTO);
|
|
||||||
}
|
|
||||||
return APIUtil.appDtoToAppResponse(applicationDTO);
|
return APIUtil.appDtoToAppResponse(applicationDTO);
|
||||||
}
|
}
|
||||||
} catch (LifeCycleManagementDAOException e) {
|
} catch (LifeCycleManagementDAOException e) {
|
||||||
|
|||||||
@ -521,7 +521,6 @@ public class APIUtil {
|
|||||||
public static String createAppIconPath(ApplicationReleaseDTO applicationReleaseDTO, int tenantId) throws ApplicationManagementException {
|
public static String createAppIconPath(ApplicationReleaseDTO applicationReleaseDTO, int tenantId) throws ApplicationManagementException {
|
||||||
String basePath = getArtifactDownloadBaseURL() + tenantId + Constants.FORWARD_SLASH + applicationReleaseDTO
|
String basePath = getArtifactDownloadBaseURL() + tenantId + Constants.FORWARD_SLASH + applicationReleaseDTO
|
||||||
.getAppHashValue() + Constants.FORWARD_SLASH;
|
.getAppHashValue() + Constants.FORWARD_SLASH;
|
||||||
String iconPath = basePath + Constants.ICON_ARTIFACT + Constants.FORWARD_SLASH + applicationReleaseDTO.getIconName();
|
return basePath + Constants.ICON_ARTIFACT + Constants.FORWARD_SLASH + applicationReleaseDTO.getIconName();
|
||||||
return iconPath;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user