Add app details for UNMANAGED_APP_UNINSTALL #210
Merged
pahansith
merged 4 commits from osh.silva/device-mgt-core:unmanaged-install-9211
into master
1 year ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'osh.silva/device-mgt-core:unmanaged-install-9211'
Deleting a branch is permanent. It CANNOT be undone. Continue?
fixes https://roadmap.entgra.net/issues/10260
operation.setInitiatedBy(rs.getString("INITIATED_BY"));
if (MDMAppConstants.AndroidConstants.UNMANAGED_APP_UNINSTALL.equals(operation.getCode())) {
byte[] operationDetails = rs.getBytes("OPERATION_DETAILS");
bais = new ByteArrayInputStream(operationDetails);
ByteArrayInputStream and ObjectInputStream needs to be closed explicitly or wrapped inside the try with resources block to avoid resource leaking
operations.add(operation);
}
} catch (IOException e) {
throw new OperationManagementDAOException("IO Error occurred while retrieving app data of operation ", e);
log the error
} catch (IOException e) {
throw new OperationManagementDAOException("IO Error occurred while retrieving app data of operation ", e);
} catch (ClassNotFoundException e) {
throw new OperationManagementDAOException("Class not found error occurred while retrieving app data of operation ", e);
log the error
operation.setInitiatedBy(rs.getString("INITIATED_BY"));
if (MDMAppConstants.AndroidConstants.UNMANAGED_APP_UNINSTALL.equals(operation.getCode())) {
byte[] operationDetails = rs.getBytes("OPERATION_DETAILS");
bais = new ByteArrayInputStream(operationDetails);
ByteArrayInputStream and ObjectInputStream needs to be closed explicitly or wrapped inside the try with resources block to avoid resource leaking
7afe7fca08
into master 1 year agoReviewers
7afe7fca08
.