Aqr-K
f3c1449c8b
fix(storage): preserve transfer contents and cleanup identities ( #7142 )
2026-10-23 06:51:54 +08:00
jxxghp
f090d22df2
fix(transfer): continue overwrite after target cleanup
...
## 问题
覆盖裁决确认旧媒体库目标存在后,洗版流程可能在实际备份前删除旧目标。恢复整理时备份步骤把旧目标和备份都不存在视为未知冲突,任务进入人工复核,暂存的新版本无法入库。
## 修复
- 备份步骤在确认旧目标已被外部删除、且备份目标也不存在时记录为无副作用跳过。
- 继续提升已完整暂存的新版本;移动整理仍在提升成功后清理源文件。
- 查询失败、两端同时存在或存在备份但状态矛盾时继续保持人工复核保护。
- 增加持久整理回归测试,覆盖覆盖裁决后旧目标被删除的场景。
## 验证
- `tests/test_transfer_safe_overwrite.py`:94 passed
- 整理执行、持久化、人工复核、提交、worker、计划测试:202 passed
- changed-file Pylint:10.00/10
Fixes #7120
2026-10-21 12:54:06 +08:00
jxxghp
6766a0516e
fix(transfer): recover legacy 115 receipts and isolate cloud copies
...
Validate old instant-upload receipts against frozen source bytes and the original cloud file ID before source deletion. Isolate native 115 copies before renaming, verify moved object IDs, and quarantine uncertain native operations instead of replaying them. Require explicit delete success.
Refs #7099
2026-10-20 17:33:51 +08:00
jxxghp
1b62418caa
fix(transfer): preserve valid u115 overwrite filenames
...
Keep 115 staging and backup names compatible with its rename API by retaining the target extension and a nonempty basename.
Refs #7093
2026-10-20 12:21:09 +08:00
jxxghp
9f03157977
fix(transfer): ignore timestamps in cleanup identity checks
2026-10-19 19:09:12 +08:00
DDSRem
2de976f6b3
Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
...
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00
jxxghp
4955b7b9ea
fix: harden backend isolation and execution safety
2026-10-16 09:11:28 +08:00