Check if params data cannot be JSONified
requested to merge 473837-invalid-unicode-500-error-when-pushing-an-image-binary-with-gitguardian-enabled into master
What does this MR do and why?
This MR aims to handle a situation where binary data is included in the params
data structure. We check if the blob.data
can be turned into JSON, and if not, that specific blob is not included in the list of blobs to check against GitGuardian.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to Invalid Unicode 500 Error when pushing an image... (#473837 - closed)
Edited by Ash McKenzie