diff --git a/admin/admin-service/pom.xml b/admin/admin-service/pom.xml index 72c33550af4..03ccf1bbf1b 100644 --- a/admin/admin-service/pom.xml +++ b/admin/admin-service/pom.xml @@ -36,21 +36,6 @@ - - com.fasterxml.jackson.core - jackson-core - 2.12.0 - - - com.fasterxml.jackson.core - jackson-databind - 2.12.0 - - - com.fasterxml.jackson.core - jackson-annotations - 2.12.0 - com.fasterxml.jackson.dataformat jackson-dataformat-xml @@ -149,12 +134,6 @@ - - javax.validation - validation-api - 2.0.1.Final - - io.mosip.commons commons-packet-manager diff --git a/admin/admin-service/src/main/java/io/mosip/admin/packetstatusupdater/service/impl/AuditManagerProxyServiceImpl.java b/admin/admin-service/src/main/java/io/mosip/admin/packetstatusupdater/service/impl/AuditManagerProxyServiceImpl.java index 2d4e6850e95..485584dd675 100644 --- a/admin/admin-service/src/main/java/io/mosip/admin/packetstatusupdater/service/impl/AuditManagerProxyServiceImpl.java +++ b/admin/admin-service/src/main/java/io/mosip/admin/packetstatusupdater/service/impl/AuditManagerProxyServiceImpl.java @@ -112,18 +112,16 @@ public AuditManagerResponseDto logAdminAudit(AuditManagerRequestDto auditManager auditManagerRequestDto.setSessionUserName(username); auditManagerRequestDto.setCreatedBy(getHeaderValue(HttpHeaders.REFERER)); - HttpHeaders auditReqHeaders = new HttpHeaders(); - auditReqHeaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON)); RequestWrapper request = new RequestWrapper<>(); request.setId("mosip.admin.audit"); request.setVersion("0.1"); request.setRequesttime(LocalDateTime.now()); request.setRequest(auditManagerRequestDto); - HttpEntity> entity = new HttpEntity<>(request, auditReqHeaders); + HttpEntity> entity = new HttpEntity<>(request); try { - restTemplate.postForEntity(auditmanagerapi, entity, Object.class); + restTemplate.postForEntity(auditmanagerapi, entity, String.class); } catch (HttpClientErrorException | HttpServerErrorException ex) { throw new MasterDataServiceException(AdminManagerProxyErrorCode.ADMIN_LOG_FAILED.getErrorCode(), AdminManagerProxyErrorCode.ADMIN_LOG_FAILED.getErrorMessage(), ex);