Merge pull request 'Resolve inability to edit app related data' (#382) from ashvini/device-mgt-core:Bug#11020 into master

Reviewed-on: community/device-mgt-core#382
remotes/1725563413541109883/master
Pahansith Gunathilake 7 months ago
commit ff92eae958

@ -2619,8 +2619,11 @@ public class ApplicationManagerImpl implements ApplicationManager {
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true);
String userName = PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername();
ApplicationDTO applicationDTO = getApplication(applicationId);
String sanitizedName = ApplicationManagementUtil.sanitizeName(applicationUpdateWrapper.getName(),
Constants.ApplicationProperties.NAME );
String sanitizedName = "";
if (!StringUtils.isEmpty(applicationUpdateWrapper.getName())) {
sanitizedName = ApplicationManagementUtil.sanitizeName(applicationUpdateWrapper.getName(),
Constants.ApplicationProperties.NAME );
}
try {
ConnectionManagerUtil.beginDBTransaction();
if (!StringUtils.isEmpty(sanitizedName) && !applicationDTO.getName()

Loading…
Cancel
Save