add system image et al will happily download the redirect pages without following redirects.
Description
Description
Details
Details
- Difficulty level
- Unknown (require assessment)
- Version
- -
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Unspecified (possibly destroys the router)
- Issue type
- Bug (incorrect behavior)
Event Timeline
Comment Actions
vyos@vyos:~$ add system image http://FQDN/vyos-1.4-rolling-202112010318-amd64.iso Trying to fetch ISO file from http://FQDN/vyos-1.4-rolling-202112010318-amd64.iso... Downloading... Redirecting to http://FQDN/vyos-1.4-rolling-202112010318-amd64.iso The file is 436.000 MiB. [###__________________________________________________________________________________
Comment Actions
I assumed the last element of .history[] is the final URL, so I had it display .history[-1]; but it turns out it overwrites .url with the final destination and only keeps the previous redirects in .history[]. Now it just displays .url if .history[] is not empty.