Skip to content

fix(backup): release archive handles after restore failure - #107

Merged
SingLinkNetwork merged 1 commit into
fix/custom-overwrite-stale-proxiesfrom
fix/backup-restore-file-lock
Aug 10, 2026
Merged

fix(backup): release archive handles after restore failure#107
SingLinkNetwork merged 1 commit into
fix/custom-overwrite-stale-proxiesfrom
fix/backup-restore-file-lock

Conversation

@SingLinkNetwork

Copy link
Copy Markdown
Owner

對應下游 #106、上游 https://github.com/chen08209/FlClash/issues/1906。

原因

備份解析或解壓失敗時,舊流程可能不會釋放 backup.zip,在 Windows 造成後續本機/WebDAV 覆蓋被拒絕。

修復

  • 將解壓移至保證關檔的流程。
  • 每個解壓輸出檔同樣保證關閉。
  • 加入解壓失敗後不保留備份檔案控制權的回歸測試。

已完成本機驗證

  • 先寫回歸測試,再確認由失敗轉通過。
  • 完整 Flutter 測試:553 項通過。
  • 靜態分析、格式與差異檢查通過;僅保留專案原有 10 個提示。

此 PR 為候選修復堆疊的一環,待完整跨平台 CI 通過後再進入下一步。

@SingLinkNetwork
SingLinkNetwork marked this pull request as draft August 10, 2026 08:16
@SingLinkNetwork
SingLinkNetwork force-pushed the fix/backup-restore-file-lock branch from a6f07fe to ea2d7e2 Compare August 10, 2026 08:20
@SingLinkNetwork
SingLinkNetwork marked this pull request as ready for review August 10, 2026 11:34
@SingLinkNetwork
SingLinkNetwork merged commit cabe5e7 into fix/custom-overwrite-stale-proxies Aug 10, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant