BUG: Corrupted image metadata causes HTTP 500, crashing the entire gallery view
メンテナーはふだん 10 日以内に返信
@mystic-fae がすでに取り組んでいます。
2026年11月19日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 320
- フォーク
- 771
- 平均マージ
- 9日 5時間
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/PictoPy のほかの issue
-
BUG: Add images to album: success message shows requested count, not number actually added対応中かも @avika269 が 3 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AOSSIE-Org/PictoPy#1740 · コメント 2 件 ·
メンテナーはふだん 10 日以内に返信
-
BUG: /sync-folder does not validate the supplied folder_id対応中かも @sathvikn113 が 4 日前に担当しました。 オープンbug possible-duplicate
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/PictoPy#1731 · コメント 5 件 ·
メンテナーはふだん 10 日以内に返信
-
DOC: update deprecated libgl1-mesa-glx package and stale setup.md references対応中かも @avika269 が 4 日前に担当しました。 オープンdocumentation
難易度 1/5 1〜3時間 初心者へのやさしさ 65/100
AOSSIE-Org/PictoPy#1730 · コメント 5 件 ·
メンテナーはふだん 10 日以内に返信
-
bug possible-duplicate
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/PictoPy#1729 · コメント 4 件 ·
メンテナーはふだん 10 日以内に返信
-
BUG: Memory curator misses upcoming anniversaries across year boundaries and on leap days対応中かも @akhilmodi29 が 5 日前に担当しました。 オープンbug possible-duplicate
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
AOSSIE-Org/PictoPy#1725 · コメント 4 件 ·
メンテナーはふだん 10 日以内に返信
AOSSIE-Org/PictoPy の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gke-labs/kube-agents#6778 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Declare the CMS schema library in the optional recipients extra対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:python in-progress
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
yhay81/pyropdf#1005 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/build-framework kind/enhancement priority/low
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
yugabyte/yugabyte-db#38826 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
sususweet/midea_auto_cloud#306 ·
メンテナーはふだん 9 日以内に返信