Skip to content

Wrap IllegalArgumentException into JWTDecodeException#426

Merged
lbalmaceda merged 2 commits intomasterfrom
fix-iae
Jun 24, 2020
Merged

Wrap IllegalArgumentException into JWTDecodeException#426
lbalmaceda merged 2 commits intomasterfrom
fix-iae

Conversation

@lbalmaceda
Copy link
Copy Markdown
Contributor

Changes

Bumping commons-codec to 1.14 introduced a runtime exception when the input was not valid base 64. This PR bumps the commons-codec dependency to the latest version and handles internally that exception, wrapping it into a JWTDecodeException (which is what it represents).

References

Closes #415

Testing

  • This change adds test coverage
  • This change has been tested on the latest version of Java or why not

Checklist

@lbalmaceda lbalmaceda added CH: Fixed small This PR may require low effort to action, or contains few changes to review labels Jun 12, 2020
@lbalmaceda lbalmaceda added this to the v3-Next milestone Jun 12, 2020
@lbalmaceda lbalmaceda requested a review from a team June 12, 2020 19:44
@lbalmaceda lbalmaceda merged commit 5dbe4e8 into master Jun 24, 2020
@lbalmaceda lbalmaceda deleted the fix-iae branch June 24, 2020 19:49
@jimmyjames jimmyjames modified the milestones: v3-Next, 3.11.0 Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CH: Fixed small This PR may require low effort to action, or contains few changes to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Throw JWTDecodeException in JWTDecoder when Base64 decoding fails

2 participants