bcgov / bcparis-service

BCParis API is a restful API that accepts Driver, Vehicle and POR (Protection Order Registry) queries
Apache License 2.0
3 stars 8 forks source link

Bcparis 28 #314

Closed NikhilMM89 closed 1 year ago

NikhilMM89 commented 1 year ago

Description

This PR includes the following proposed change(s):

Type of change

How Has This Been Tested?

It has been Tested in DEV environment and it is working as expected

Checklist:

NikhilMM89 commented 1 year ago

BCPARIS API was configured with the liveness and readiness probe (GET request with no body to the path /health/actuator) to trigger every 10 seconds interval in OCP. Due to this lot of GET requests with empty body was incoming on the BCPARIS API.

The BCPARIS API logging filter code was trying to PARSE every incoming request to a Layer 7 message type it was causing exception for request with empty body.

Solution is to Modify the logging filter code to not parse the incoming request in case of a GET request.