Open opoplawski opened 2 years ago
This might be hard to achieve, we currently use the response URL segment to derive the file name as per https://github.com/ansible-collections/ansible.windows/blob/da837ec87f78d7af3467ead65e1f934f44798a4b/plugins/modules/win_package.ps1#L508. At this point in time the URL has already been changed by dotnet. We could use [Uri]::UnescapeDataString(...)
to get the raw value back but I'm unsure whether this might cause more problems down the line with invalid file path characters.
As a workaround for now you can use win_get_url
to download the package manually with the chars you filename needed until we figure out the best way forward here.
SUMMARY
BitDefender setupdownloader depends on the filename remaining exactly the same. But it contains '[' and ']' characters that end up URL escaped in the downloaded file.
ISSUE TYPE
COMPONENT NAME
win_package
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL 8.6
STEPS TO REPRODUCE
EXPECTED RESULTS
Install succeeds
ACTUAL RESULTS