Files
ragflow/api/apps
lif 81f9296d79 Fix: handle invalid img_id format in chunk update (#12422)
## Summary
- Fix ValueError when updating chunk with invalid/empty `img_id` format
- Add validation before splitting `img_id` by hyphen
- Use `split("-", 1)` to handle object names containing hyphens

## Test plan
- [x] Verify chunk update works with valid `img_id` (format:
`bucket-objectname`)
- [x] Verify chunk update doesn't crash with empty `img_id`
- [x] Verify chunk update doesn't crash when `img_id` has no hyphen
- [x] Verify ruff check passes

Fixes #12035

Signed-off-by: majiayu000 <1835304752@qq.com>
2026-01-05 11:27:19 +08:00
..
2026-01-04 19:16:29 +08:00
2025-12-25 16:59:05 +08:00
2025-12-25 21:18:13 +08:00
2025-12-25 21:18:13 +08:00
2025-12-22 16:47:21 +08:00
2025-12-25 21:18:13 +08:00
2025-12-12 10:23:40 +08:00
2025-12-22 16:47:21 +08:00