mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
Rekognition never looked at the image, so a WebP, a cut-off file, an oversized Bytes payload or an S3Object that was never uploaded all got the stub's success response. RekognitionImageValidator now checks every image as Rekognition does, before the stub or mock response: base64 (SerializationException), Bytes length (ValidationException, every violation in one error), the S3 object's existence and region (InvalidS3ObjectException), JPEG/PNG structure (InvalidImageFormatException) and the 10,000 pixel side limit (ImageTooLargeException or InvalidImageFormatException, per operation). Each rule was measured against Rekognition in us-east-2.