Commit Graph

10 Commits

Author SHA1 Message Date
jxxghp
379ef94c9c fix(transfer): 修复硬链接覆盖整理误留暂存与备份 (#7322)
从已落账操作回执更新共享 inode 的状态时间,并保留外部改写与未知结果的副本保护。关联 #7321。
2026-11-07 18:33:23 +08:00
jxxghp
c1f9c94353 fix(transfer): generalize remote overwrite filenames
Refs #7306
2026-11-06 12:54:46 +08:00
jxxghp
0dc25fa6f4 fix(transfer): preserve third-party 115 overwrite filenames
Refs #7306
2026-11-06 12:27:32 +08:00
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