mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-15 15:50:35 +00:00
* fix(gateway): reject artifact archives where a file collides with an implicit directory When a run outputs both a file and a deeper file path whose parent directory matches the first file's normalized name (e.g. 'Report' and 'report/slides/lesson.pptx', or Unicode NFC/NFD variations), the ZIP archive builder allowed both entries because it only checked for exact full path equality. On case-insensitive filesystems, extracting such archives fails because the file entry blocks directory creation or vice versa. This change collects all implicit directory prefixes from normalized casefolded entries and rejects the archive with HTTP 409 (ArtifactArchiveError) if any file entry name collides with an implicit directory, regardless of receipt order. Fixes #7977 * fix(gateway): address review feedback on test portability and loop readability