Skip to content

fix(rpc): resolve nested output paths under download directory - #32

Merged
agalwood merged 2 commits into
mainfrom
fix/2502_nested_output_20261105
Nov 4, 2026
Merged

agalwood merged 2 commits into
mainfrom
fix/2502_nested_output_20261105

Conversation

@agalwood

@agalwood agalwood commented Nov 4, 2026

Copy link
Copy Markdown
Member

Cloud-drive RPC clients send nested paths such as /album/file.bin in out. The absolute-path handling added to applyDir bypassed dir, so Motrix attempted to create folders at the filesystem root and failed with error 18.

Restore upstream HTTP/FTP out semantics for both task creation and changeOption, including SQLite/text-session reconstruction. Preserve absolute BitTorrent index-out mappings. Add native tests and real-engine regressions for nested Unicode paths, a missing destination directory, option changes, restart recovery, and torrent mappings. Run the regression against all seven native release-contract targets before publication, and document the compatibility behavior for motrix.23.

Refs: agalwood/Motrix#2502. Motrix integration follows after the engine release.

Validation on macOS arm64:

  • Exact checksum-pinned motrix.22 baseline: five new regression cases fail; the ordinary relative-path and absolute BT mapping controls pass.
  • Native C++ suite: 1,126 tests pass.
  • Nested-output and long-path real-engine suites: 8 tests pass.
  • HTTP retry and task-cookie suites: 39 tests pass.
  • Motrix aria2-adapter.integration.test.ts: 5 tests pass with the candidate engine.
  • Release workflow passes actionlint; both workflows pass structural actionlint validation. Existing CI shellcheck diagnostics are on unchanged lines.
  • Independent adversarial review traced all output-path entry points and checkpoint/retry identity checks; no blocking defects found. Windows/Linux execution remains covered by CI and the release gates.

Restore directory-relative HTTP/FTP out semantics for cloud-drive clients that send leading-slash paths. Preserve absolute BitTorrent index-out mappings and apply the same rule when changing task options.

Add native and real-engine regressions for nested directories, Unicode names, SQLite restart recovery, and absolute torrent mappings.

Refs: agalwood/Motrix#2502
@agalwood
agalwood merged commit 7d318fc into main Nov 4, 2026
83 of 96 checks passed
@agalwood
agalwood deleted the fix/2502_nested_output_20261105 branch November 4, 2026 23:41
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