Is there an existing issue for this?
What happened?
Where :backend/app/routes/images.py
What happened ? : The MetadataModel enforces strict types (e.g., width: int), so if the database contains images where metadata parsing failed (returning None), Pydantic validation throws an error.
What should be : Make fields Optional (e.g., width: Optional[int] = None) or use validators to provide defaults.
Why?: A single image with missing EXIF data causes the get_all_images endpoint to return HTTP 500, breaking the gallery for the entire library.
Record
Is there an existing issue for this?
What happened?
Where
:backend/app/routes/images.pyWhat happened ? : The
MetadataModelenforces strict types (e.g., width: int), so if the database contains images where metadata parsing failed (returning None), Pydantic validation throws an error.What should be : Make fields Optional (e.g., width: Optional[int] = None) or use validators to provide defaults.
Why?: A single image with missing
EXIFdata causes theget_all_imagesendpoint to return HTTP 500, breaking the gallery for the entire library.Record