Mentions légales du service

Skip to content

feat(captcha): don't log errors raisings monitoring alerts when it's the user who send invalid data

Jujube Orange requested to merge feature/silent-captcha-errors into develop

valid_captcha_challenge_response_should_result_in_successfully_verified_captcha → no logs

null_registerVo_should_result_in_unverified_captcha
11:44:44.355 [main] INFO fr.gouv.stopc.robertserver.ws.service.impl.CaptchaServiceImpl - Incomplete captcha verification informations

registerVo_with_null_captcha_should_result_in_unverified_captcha → 11:44:44.390 [main] INFO fr.gouv.stopc.robertserver.ws.service.impl.CaptchaServiceImpl - Incomplete captcha verification informations

incorrect_captcha_challenge_response_should_result_in_unverified_captcha → no logs

status_400_api_response_should_result_in_unverified_captcha →

11:44:44.199 [main] INFO fr.gouv.stopc.robertserver.ws.service.impl.CaptchaServiceImpl - Captcha endpoint returned a client error status code, this means the validation request attributes are invalid
org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: [no body]
	at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:101)
...

status_500_api_response_should_result_in_unverified_captcha →

11:44:44.329 [main] ERROR fr.gouv.stopc.robertserver.ws.service.impl.CaptchaServiceImpl - Captcha endpoint returned a server error status code, check captcha service logs
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 Internal Server Error: [no body]
	at org.springframework.web.client.Http...

unexisting_captcha_id_should_result_in_unverified_captcha →

11:44:44.302 [main] INFO fr.gouv.stopc.robertserver.ws.service.impl.CaptchaServiceImpl - Captcha endpoint returned a client error status code, this means the validation request attributes are invalid
org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found: "{    "code": "0002",    "message": "The captcha does not exist"}"
	at org.springframewo...

Merge request reports