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

Fix for issue product-is/21659 #231

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -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