Andrei Borzenkov wrote:
On 14.09.2022 18:34, Per Jessen wrote:
Hmm, wait. The issue is the 302 redirect to the versioned file, isn't it? When a user requests :
"d.o.o:/distribution/leap/15.4/iso/openSUSE-Leap-15.4-DVD-x86_64-Media.iso"
he is given an http 302 redirect to:
"d.o.o:/distribution/leap/15.4/iso/openSUSE-Leap-15.4-DVD-x86_64-Build243.2-Media.iso"
and eventually also to the mirror with that file. Unfortunately clients don't agree on how to work with that.
I wonder if this is something specific to mirrorbrain/cache ? When I
Yes, both mirrorbrain and MirrorCache explicitly resolve symlinks and apply mirror lookup to the link target.
I guess there is a reason for that, but I can't imagine what it is.
use Firefox to download directly from a mirror:
"http://mirror.hostsuisse.com/opensuse/distribution/leap/15.4/iso/openSUSE-Le..."
there is no redirect, and I get a file called "openSUSE-Leap-15.4-DVD-x86_64-Media.iso".
I am still unsure because the first redirection comes to the local file (not to a mirror), and I do not know whether this redirection is performed by mirrorbrain/MirrorCache or web server on download.o.o itself. But it does not really matter because the final name on mirrors will still include version.
I've already checked the apache config pontifex, I'll do it again.
The only clean fix is to avoid symlinks at all. Everything else is choosing the lest evil.
It still seems to me we just ought to avoid that initial 302 redirect - it works for all the mirrors. -- Per Jessen, Zürich (20.1°C) Member, openSUSE Heroes