Repository navigation
fix(sync): 发布前核对实际上传摘要与内容寻址名称 - #17
Merged
Merged
Conversation
Reject source changes between preflight and transfer before publishing the staged object. Preserve the early verification gate and retain temporary copies without recycling unverified receipt IDs on failure. Cover new and replacement multipart uploads, reused receipt IDs, and lowercase, uppercase and ordinary filenames.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
文件在预检与传输的两次读取之间发生变化时,
sync --verify可能将不符合内容寻址名称的内容发布,并继续执行额外文件删除。本修复在发布前用上传初始化实际使用的摘要再次核对目标文件名;失败时保留临时副本及旧对象,不回收未经确认的上传 ID。保留
--verify门禁与上传前检查,覆盖新建和替换的真实分片 PUT、复用旧 ID 的回执、64-hex 大小写名称及普通文件名。普通同步行为保持兼容。验证:隔离配置、假凭证及 localhost mock 下,
cargo test --locked --offline --no-fail-fast670 passed / 0 failed;格式检查与 Clippy 通过(既有告警)。未访问真实云盘。#16 已按要求合并;本修复的直接 main 更新因分支保护要求三个 CI 检查而被拒绝,因此通过此 PR 完成必需检查并合入。