VSN-2437/ feat(inspection+report): link inspections to driver, fix report generation and email sending
Summary
- Accept and persist
driverIdon inspection creation - Expose
driverIdinInspectionResponseDto - Add
driverIdfilter param to inspection list and report list endpoints - Fall back to driver email when company email is absent in
getCompanyEmailFromInspection— prevents report generation from crashing (temporary) - Add
regenerateAndCachePdf/buildPdfByteshelpers: when the S3 file is missing, the PDF is regenerated on-the-fly so download and email send never return a 500 - Fix photo extraction to also recognize field type
"image" - Refactor duplicated date parsing into
parseDateFlexible()supporting ISO and French formats - Fix
javaxvsjakartamail namespace conflict: exclude conflicting jars inpom.xml, usevarforMimeMessageto avoid compile-time import resolution - Null-safe guard on
formId/formResponsein report detail to prevent NPE