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 dex index overflow exception #1007

Merged
merged 6 commits into from Sep 18, 2017
Merged

Fix dex index overflow exception #1007

merged 6 commits into from Sep 18, 2017

Conversation

sergey-akhalkov
Copy link
Contributor

@sergey-akhalkov sergey-akhalkov commented Sep 18, 2017

SignedJWT signedJWT = SignedJWT.parse(jwt);
JWSVerifier verifier = new RSASSAVerifier((RSAPublicKey)publicKey);
if (signedJWT.verify(verifier)) {
return signedJWT.getJWTClaimsSet().getClaims();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to keep logging here to help devs to debug going further?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, thanks!

return signedJWT.getJWTClaimsSet().getClaims();
}
return null;
} catch (Exception ex) {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to add exception logging here to be able determine cause of problem in future:

CodePushUtils.log(ex.getMessage());
CodePushUtils.log(ex.getStackTrace().toString());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants