Skip to content

RUST-BUG-191 - Return stock eD2K metadata replies for partial and unknown files #374

In progress

Description

@itlezy

Return a sized all-zero standalone availability bitmap for known incomplete multipart files. Preserve the separate payload-serving gate. Match the stock filename and status sequence for unknown files.

Compare behavior with stock eMule ac3d52e and amule-org aMule c5989ec4a. Use #164 for deterministic protocol evidence and #31 for same-revision interoperability.

Roadmap placement is Beta 3 Client gate.

Incomplete filename admission by reference

The current Rust status handler answers for a known multipart download before any data part is verified. Keep payload authorization separate. Before c2906fb, the filename handler used the stricter verified-part serving lookup. Stock's filename fallback instead tests GetCompletedSize >= PARTSIZE, and PartFile.cpp calculates that value as file size minus total gaps. This can include a part's worth of received bytes scattered across several parts. amule-org aMule's fallback tests total file size > PARTSIZE, so it can answer even earlier. Add an explicit scattered-progress fixture to the remaining native metadata proof. Record the reference behavior and keep any filename-only accommodation separate from verified range serving.

Source anchors: stock ListenSocket.cpp OP_REQUESTFILENAME and PartFile.cpp UpdateCompletedInfos; aMule ClientTCPSocket.cpp OP_REQUESTFILENAME; Rust ed2k_tcp/listener/session/shared_file.rs and ed2k_transfer/catalog.rs.

Reproducible scattered-progress boundary

PR #394 at c2906fb tests two incomplete parts. It writes sparse full blocks in the first part and an exact prefix in the second, bringing the received total to 9,727,999 bytes. It then appends one byte so the total reaches 9,728,000. The TCP fixture observes filename silence and file-not-found for all three multipacket forms below the threshold. At the threshold it receives the filename and zero availability in all multipacket forms. It checks zero standalone availability and upload refusal. Both parts remain unverified.

The registered Windows package suite passed 1,566 tests with this change. The fixture exercises the Rust TCP listener. Native stock and aMule data-point capture remains under #31.

Activity

  1. added
    bug
    rust
    beta3-blocker
    on Nov 25, 2026
  2. moved this from Todo to In Progress in eMuleBB Roadmapon Nov 25, 2026
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

    beta3-blockerbugrust

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions