BUG: Corrupted image metadata causes HTTP 500, crashing the entire gallery view
I maintainer di solito rispondono entro 10 giorni
@mystic-fae ci sta già lavorando.
Dal 19/11/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
Direzione di ricerca
Read backend/AGENTS.md and compare the image handling in backend/app/routes/images.py (get_all_images() and search_images_by_tag()) with the validation handling in videos.py and video_util_to_video_data. Confirm how warnings are logged and how image records are validated. Done means a malformed record is logged and skipped while valid images still return successfully from both endpoints.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
What happened?
I noticed that in backend/app/routes/images.py (get_all_images() and search_images_by_tag()), the app builds the list of images using a direct list comprehension.
If even one photo in the database has corrupted or unexpected metadata, Pydantic throws a ValidationError. Because it's trapped in a bare list comprehension, that single bad record crashes the entire endpoint with an HTTP 500. As a result, the user's whole gallery fails to load.
Why we should fix it
The project's own rulebook in backend/AGENTS.md is super clear about this.
videos.py already handles this gracefully, but images.py is missing the pattern.
The proposed fix
We can update the loop in images.py to go row by row using a try/except block (just like video_util_to_video_data). If a row fails validation, we can log a warning with the image ID, skip it, and let the rest of the healthy photos load successfully with a 200 response instead of crashing.
I want to work on this issue and open a PR about this .
Can assign this to me?
Record
- I agree to follow this project's Code of Conduct
- Lingua principale
- Python
- Stelle
- 320
- Fork
- 771
- Merge medio
- 9g 5h
- PR unite (30g)
- 15
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/PictoPy
-
BUG: Add images to album: success message shows requested count, not number actually addedForse già presa @avika269 l’ha presa 2 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AOSSIE-Org/PictoPy#1740 · 2 commenti ·
I maintainer di solito rispondono entro 10 giorni
-
BUG: /sync-folder does not validate the supplied folder_idForse già presa @sathvikn113 l’ha presa 3 giorni fa. Apertabug possible-duplicate
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/PictoPy#1731 · 5 commenti ·
I maintainer di solito rispondono entro 10 giorni
-
DOC: update deprecated libgl1-mesa-glx package and stale setup.md referencesForse già presa @avika269 l’ha presa 3 giorni fa. Apertadocumentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
AOSSIE-Org/PictoPy#1730 · 5 commenti ·
I maintainer di solito rispondono entro 10 giorni
-
bug possible-duplicate
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
AOSSIE-Org/PictoPy#1729 · 4 commenti ·
I maintainer di solito rispondono entro 10 giorni
-
BUG: Memory curator misses upcoming anniversaries across year boundaries and on leap daysForse già presa @akhilmodi29 l’ha presa 5 giorni fa. Apertabug possible-duplicate
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
AOSSIE-Org/PictoPy#1725 · 4 commenti ·
I maintainer di solito rispondono entro 10 giorni
Tutte le issue di AOSSIE-Org/PictoPy
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
Unused loot bag group names left in dreamcraft en_US.langForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaStatus: Triage Suggestion
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
GTNewHorizons/GT-New-Horizons-Modpack#27789 ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend sev-5
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
-
core good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
b4b code health next
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ESCOMP/CTSM#4330 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno