Skip to content

[Upstream #2163][Android] Local backup restore accepts pathless system-picker files #97

Description

@SingLinkNetwork

上游來源

已確認根因

現行本機還原只讀取 PlatformFile.path;Android 的系統檔案選取器可能只提供檔案內容而不提供傳統磁碟路徑。此時程式直接結束,沒有還原也沒有錯誤訊息。

修復範圍

  • 若選取結果有路徑:保留現有快速複製。
  • 若沒有路徑但有內容:將內容安全寫入應用程式的暫存備份檔,再進行還原。
  • 不混入原上游單中 WebDAV 重新導向與 URL 匯入的不同問題;它們將個別分析。

驗收

  1. 新增單元測試覆蓋「只有內容、沒有路徑」的 Android 選檔結果。
  2. 路徑式選檔行為不回歸。
  3. 本機完整測試、分析與 GitHub Actions Android、macOS、Linux、Windows 全綠。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions