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.
Bug #7
DefaultDownloadManager.javalines 118-119The 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=abcor#section),sourceUrl.getPath()returns only the path portion, but thesubstringoperation uses the full URL length, producing an incorrect base URL.This can break wagon connectivity when URLs contain query parameters or fragments.