Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mosip 32461 #1880

Merged
merged 31 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0d5c79d
MOSIP-32461 intial changes
May 10, 2024
4a23a41
MOSIP-32461 few test cases fixed
May 14, 2024
a9c3bbd
MOSIP-32461 code fix
May 15, 2024
228d547
MOSIP-32461 code changes
May 16, 2024
507dcc9
MOSIP-32461 code fix
May 17, 2024
9d4d0ab
MOSIP-32461 code fix
May 17, 2024
552811f
MOSIP-32461 code fix
May 21, 2024
0ddae58
MOSIP-32461 code fix
May 21, 2024
d5d9519
MOSIP-32461 code changes
May 22, 2024
e2aa5ec
MOSIP-32461 code changes
May 23, 2024
60d9e16
MOSIP-32461 code changes
May 23, 2024
12aaab4
MOSIP-32461 docker changes
May 23, 2024
8e2c9e3
MOSIP-32461 docker changes
May 23, 2024
3254cce
MOSIP-32461 docker changes
May 24, 2024
e5f079f
MOSIP-32461 docker changes
May 24, 2024
61e9d26
Merge branch 'develop-java21' of https://github.com/mosip/registratio…
May 27, 2024
c982ef4
MOSIP-32461 activemq exclude from spring boot
May 27, 2024
82f190a
MOSIP-32461 activemq exclude from spring boot
May 27, 2024
8e6e649
MOSIP-32461 code changes
May 27, 2024
1b88d96
Merge branch 'develop-java21' of https://github.com/mosip/registratio…
May 27, 2024
c2cb7d9
MOSIP-32461 code changes
May 28, 2024
862c836
Merge branch 'develop-java21' of https://github.com/mosip/registratio…
May 28, 2024
aef11d8
MOSIP-32461 docker changes
May 29, 2024
ca2a8a4
Merge branch 'develop-java21' of https://github.com/mosip/registratio…
May 29, 2024
286fced
MOSIP-32461 docker changes
May 29, 2024
0e0bda0
MOSIP-32461 docker changes
May 29, 2024
cb4cb66
MOSIP-32461 Code changes
Jun 3, 2024
714bde1
Merge branch 'develop-java21' of https://github.com/mosip/registratio…
Jun 3, 2024
9c7ace5
MOSIP-32461 Code changes
Jun 3, 2024
e18c161
MOSIP-32461 code changes
Jun 4, 2024
0eacc93
MOSIP-32461 code changes
Jun 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,27 +122,19 @@ public ResponseEntity<Object> packetExternalStatus(
}
List<PacketExternalStatusDTO> packetExternalStatusDTOList = packetExternalStatusService
.getByPacketIds(packetIdList);

PacketExternalStatusResponseDTO packetExternalStatusResponseDTO = buildPacketStatusResponse(
packetExternalStatusDTOList, packetExternalStatusRequestDTO.getRequest());
String res = objectMapper.writeValueAsString(packetExternalStatusResponseDTO);
if (isEnabled) {
PacketExternalStatusResponseDTO packetExternalStatusResponseDTO = buildPacketStatusResponse(
packetExternalStatusDTOList, packetExternalStatusRequestDTO.getRequest());

HttpHeaders headers = new HttpHeaders();
String res=null;
try {

res=objectMapper.writeValueAsString(packetExternalStatusResponseDTO);
} catch (Exception e1) {
logger.error("Error while processing dto ",e1);

}
headers.add(RESPONSE_SIGNATURE,
digitalSignatureUtility.getDigitalSignature(res));
return ResponseEntity.status(HttpStatus.OK).headers(headers)
.body(res);
}

return ResponseEntity.status(HttpStatus.OK)
.body(buildPacketStatusResponse(packetExternalStatusDTOList, packetExternalStatusRequestDTO.getRequest()));
.body(res);
} catch (RegStatusAppException e) {
throw new RegStatusAppException(PlatformErrorMessages.RPR_RGS_DATA_VALIDATION_FAILED, e);
} catch (Exception e) {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,17 @@ public ResponseEntity<Object> syncRegistrationController(
env.getProperty(REG_SYNC_SERVICE_ID), syncResponseList)) {
syncResponseList = syncRegistrationService.sync(registrationSyncRequestDTO.getRequest(), referenceId, timeStamp);
}
RegSyncResponseDTO responseDto = buildRegistrationSyncResponse(syncResponseList);
String res = objectMapper.writeValueAsString(responseDto);
if (isEnabled) {
RegSyncResponseDTO responseDto = buildRegistrationSyncResponse(syncResponseList);

HttpHeaders headers = new HttpHeaders();
headers.add(RESPONSE_SIGNATURE,
digitalSignatureUtility.getDigitalSignature(objectMapper.writeValueAsString(responseDto)));
return ResponseEntity.ok().headers(headers).body(responseDto);
digitalSignatureUtility.getDigitalSignature(res));
return ResponseEntity.ok().headers(headers).body(res);
}

return ResponseEntity.ok().body(buildRegistrationSyncResponse(syncResponseList));
return ResponseEntity.ok().body(res);

} catch (JsonProcessingException e) {
throw new RegStatusAppException(PlatformErrorMessages.RPR_RGS_DATA_VALIDATION_FAILED, e);
Expand Down Expand Up @@ -155,15 +157,16 @@ public ResponseEntity<Object> syncRegistrationController2(
env.getProperty(REG_SYNC_SERVICE_ID), syncResponseList)) {
syncResponseList = syncRegistrationService.syncV2(registrationSyncRequestDTO.getRequest(), referenceId, timeStamp);
}
RegSyncResponseDTO responseDto = buildRegistrationSyncResponse(syncResponseList);
String res = objectMapper.writeValueAsString(responseDto);
if (isEnabled) {
RegSyncResponseDTO responseDto = buildRegistrationSyncResponse(syncResponseList);
HttpHeaders headers = new HttpHeaders();
headers.add(RESPONSE_SIGNATURE,
digitalSignatureUtility.getDigitalSignature(objectMapper.writeValueAsString(responseDto)));
return ResponseEntity.ok().headers(headers).body(responseDto);
digitalSignatureUtility.getDigitalSignature(res));
return ResponseEntity.ok().headers(headers).body(res);
}

return ResponseEntity.ok().body(buildRegistrationSyncResponse(syncResponseList));
return ResponseEntity.ok().body(res);

} catch (JsonProcessingException e) {
throw new RegStatusAppException(PlatformErrorMessages.RPR_RGS_DATA_VALIDATION_FAILED, e);
Expand Down
Loading
Loading