Skip to content

Commit

Permalink
Merge pull request #231 from kumardeepak5/21659-fix
Browse files Browse the repository at this point in the history
Fix for issue product-is/21659
  • Loading branch information
sadilchamishka authored Jan 24, 2025
2 parents aac2c71 + ee3c968 commit 8580d0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public class Constants {
public static final String STATUS_PRECONDITION_FAILED_MESSAGE_DEFAULT = "Precondition Failed";
public static final String STATUS_INTERNAL_SERVER_ERROR_DESCRIPTION_DEFAULT =
"The server encountered an internal error. Please contact administrator.";
public static final String STATUS_BAD_REQUEST_DEFAULT = "Bad Request";

// Recovery type.
public static final String RECOVERY_WITH_NOTIFICATIONS = "recoverWithNotifications";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ public static WebApplicationException handleIdentityRecoveryException(IdentityRe
getCode().equals(e.getErrorCode())) {
return RecoveryUtil.buildRetryPasswordResetObject(tenantDomain, errorDescription, errorCode, code,
correlationId);
} else if (IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_INVALID_CHANNEL_ID.getCode().equals(
e.getErrorCode())) {
errorMessage = Constants.STATUS_BAD_REQUEST_DEFAULT;
status = Response.Status.BAD_REQUEST;
}

if (e instanceof IdentityRecoveryClientException) {
Expand Down

0 comments on commit 8580d0d

Please sign in to comment.