Open bolausson opened 3 years ago
Hi, thanks for reaching out. A 403 normally means that you don't have permission to download. My guess is that either this is an issue with sharepoint not liking Packer's user agent, or with your link not containing correct permissions to access the file.
Hej,
so why does it work with CURL or WGET on the same link? It is defenitely not a permission issue.
This may be an issue with the golang tool we use to retrieve ISOs. We'll investigate before the next release. I'll let you know if we end up needing that link.
Thanks!
Overview of the Issue
Using a sharepoint link to download a ISO does not work.
Reproduction Steps
Pint packer to an ISO file using a sharepoint link e.g. "https://yourcompany.sharepoint.com/:u:/t/swrepo/XY0-s5Vg5FtFzUp5ep-uKGYBbgcJrjhTW1J876rKh_-VXd?e=ywnHDL&download=1"
(if you need a working sharepoint link to try, let me know and I can send one in private)
wget works fine.
Packer version
1.6.5
Simplified Packer Buildfile
"iso_url": "{{user
sharepointlink
}}",Operating system and Environment details
Gentoo Linux
Log Fragments and crash.log files
See above
Greetings, Bjoern