Page MenuHomeVyOS Platform

HTTP transfers do not follow redirects
Closed, ResolvedPublic

Description

add system image et al will happily download the redirect pages without following redirects.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

erkin changed the task status from Open to In progress.
erkin triaged this task as Normal priority.
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.
[###__________________________________________________________________________________
c-po reopened this task as In progress.

Question is why it tells us: Redirecting to http://FQDN/ http and not https?

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.