Skip to content

DefaultDownloadManager: fragment/query string corrupts base URL splitting #89

Description

@elharo

Bug #7

DefaultDownloadManager.java lines 118-119

The base URL is reconstructed via url.substring(0, url.length() - remotePath.length()). If the original URL contains a query string or fragment (e.g., ?token=abc or #section), sourceUrl.getPath() returns only the path portion, but the substring operation uses the full URL length, producing an incorrect base URL.

This can break wagon connectivity when URLs contain query parameters or fragments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions