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

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

erkin changed the task status from Open to In progress.Dec 2 2021, 2:18 PM
erkin triaged this task as Normal priority.
erkin created this task.
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.