Image-to-image parsing passes unvalidated url values to _url_to_data_url
Maintainer thường phản hồi trong vòng 1 ngày
@PG1204 đang làm issue này rồi.
Từ ngày 6/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
What happened?
ImageTaskCodegen.parsePython's image-to-image branch hands provider-supplied values to _url_to_data_url without checking their type, and indexes images without checking it is a list. Verified by running the generated parser:
| Response body | Result |
|---|---|
{"images": [{"url": null}]} |
_url_to_data_url called with None |
{"images": [{"url": 7}]} |
_url_to_data_url called with an int |
{"images": {"a": 1}} |
raises KeyError |
{"data": [{"url": null}]} |
_url_to_data_url called with None |
Three gaps:
images[0]["url"]is unvalidated (lines 137-138). A non-string reaches_fetch_remote_urlandurlparse.imagesis indexed without anisinstance(images, list)check (line 137). A dict body raisesKeyError, which_parse_responsecatches, so it degrades by exception rather than cleanly.data[0]["url"]is unvalidated (lines 148-149), the same gap as 1.
The inconsistency is the clearest sign this is unintended: the output branch at line 133 and the outputs branch below it both already guard with isinstance(url, str) and url.startswith("http"). The images and data branches in the same function do not.
These do not abort the run and _parse_response catches KeyError, IndexError and TypeError, and the row loop catches the rest per row, so the effect is a wasted fetch attempt or a cell holding the raw body instead of an image.
This is the remainder of the same defect class as #8869 and #8870. #8885 was deliberately scoped to b64_json only, leaving these for a separate change.
How to reproduce?
Run the operator with image-to-image against a provider that returns a 200 whose images[0].url or data[0].url is null or numeric, or whose images is an object rather than an array.
Version/Branch
1.4.0-incubating-SNAPSHOT (main)
Commit Hash (Optional)
No response
What browsers are you seeing the problem on?
No response
Relevant log output
- Ngôn ngữ chính
- Scala
- Star
- 333
- Fork
- 202
- Merge trung bình
- 3 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 185
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/texera
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
addOperator returns an error but still adds the operatorCó thể đã có người làm @sunny-kavixo đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/texera#9121 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Failed tool calls are marked as succeeded (isError is always false)Có thể đã có người làm @oliarmak-web đã nhận 14 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
apache/texera#9120 · 8 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
apache/texera#8682 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/texera
Issue tương tự
-
? - Needs Triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NVIDIA/cudf-spark#16937 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LFST not-issued-store count truncation can incorrectly clear strictShouldWaitCó thể đã có người làm @weidingliu đã nhận hôm nay. Đang mởmodule: memory type: bug/reported
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OpenXiangShan/XiangShan#6974 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug indigo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
PurpleKingdomGames/indigoengine#300 · 1 bình luận ·
-
JavaReservoirSampleOperator returns the whole input when the dataset size is unknownCó thể đã có người làm @sasmith-14 đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/wayang#884 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
AI Generated CI/CD ⚒️ Flaky-tests 🐦 python 🐍
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
valkey-io/valkey-glide#7722 ·
Maintainer thường phản hồi trong vòng 1 ngày