Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass whole URL in relativeUrl to PackageTarget for RPM URL download
The PackageTarget supports baseUrl and relativeUrl on the API, but then the relativeUrl is just a path fragment with no definition on whether it should be encoded. It's being passed unencoded paths from other places, and so there's a conditional encode (only if not full URL) in libdnf. But full URLs are actually supported in relativeUrl (in that case baseUrl should be empty) and in that case the URL is expected to be encoded and is not encoded for the second time. Hence, pass the full URL to relativeUrl instead of splitting it. We also need to decode the file name we store, as on the filesystem the RPM file name is also decoded. = changelog = msg: Don't double-encode RPM URLs passed on CLI type: bugfix resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2103015
- Loading branch information