Skip to content

Commit

Permalink
Merge pull request #1805 from sowmya695/1.1.5.5_uin_gen
Browse files Browse the repository at this point in the history
MOSIP-30470 code fix after testing
  • Loading branch information
vishwa-vyom authored Dec 15, 2023
2 parents 3639041 + 2058df9 commit 4e69f26
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,21 @@ public MessageDTO process(MessageDTO object) {
demographicIdentity.put("UIN", uinField);
idResponseDTO = sendIdRepoWithUin(registrationId, registrationStatusDto.getRegistrationType(), demographicIdentity,
uinField, description);
if(idResponseDTO.getErrors()!=null && idResponseDTO.getErrors().get(0).getErrorCode().equalsIgnoreCase(INVALID_INPUT_PARAMETER_ERROR_CODE)) {
if (idResponseDTO.getErrors() != null && !idResponseDTO.getErrors().isEmpty() && idResponseDTO
.getErrors().get(0).getErrorCode().equalsIgnoreCase(INVALID_INPUT_PARAMETER_ERROR_CODE)) {
for (int i = 0; i < maxRetrycount; i++) {
regProcLogger.info(StatusUtil.INVALID_INPUT_PARAMETER.getMessage()+":"+StatusUtil.INVALID_INPUT_PARAMETER.getCode()+", Retrying "+(i+1)+" times");
idResponseDTO = sendIdRepoWithUin(registrationId, registrationStatusDto.getRegistrationType(), demographicIdentity,
// This log will remove later after testing why iteration is not happening in
// server before this fix
regProcLogger.info(LoggerFileConstant.SESSIONID.toString(),
LoggerFileConstant.REGISTRATIONID.toString(), registrationId,
idResponseDTO.toString());
idResponseDTO = sendIdRepoWithUin(registrationId,
registrationStatusDto.getRegistrationType(), demographicIdentity,
uinField, description);
if (idResponseDTO.getErrors()==null || idResponseDTO.getErrors().get(0).getErrorCode()!=INVALID_INPUT_PARAMETER_ERROR_CODE)
if (idResponseDTO.getErrors() == null || idResponseDTO.getErrors().isEmpty()
|| idResponseDTO.getErrors().get(0)
.getErrorCode() != INVALID_INPUT_PARAMETER_ERROR_CODE)
break;

}
Expand Down

0 comments on commit 4e69f26

Please sign in to comment.