Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b786152d authored by Jujube Orange's avatar Jujube Orange
Browse files

fix(jwt): avoid HTTP 500 on corrupt JWT headers

parent cf0a7cc5
No related branches found
No related tags found
Loading
Pipeline #645412 passed
......@@ -144,9 +144,9 @@ class SubmissionCodeService(
val signedJwt = try {
SignedJWT.parse(jwt)
} catch (e: ParseException) {
} catch (e: Exception) {
metricsService.countCodeUsed(JWT, false)
log.info("JWT could not be parsed: ${e.message}, $jwt")
log.info("JWT could not be parsed: ${e.message ?: e::class.simpleName}, $jwt")
return false
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment