On 14.09.2022 18:34, Per Jessen wrote:
Andrei Borzenkov wrote:
On Wed, Sep 14, 2022 at 1:25 PM Per Jessen <per@opensuse.org> wrote:
Andrei Borzenkov wrote:
On Wed, Sep 14, 2022 at 12:47 PM Per Jessen <per@opensuse.org> wrote:
Yes, that is to be expected, but the name of the downloaded file should _not_ contain the versioning when the request doesn't.
Why? I already tried to explain that name of downloaded file depends on client
Sorry, yes, it _does_ depend on the client, but I still say when you request one file, you should not end up with another.
OK, it was "should" as in "I expect it ..." vs. "should" as in "I wish it ..." :)
GRIN.
Anyway, to eliminate this issue the server must not issue redirects. And it is not enough to stop redirects on get.o.o (or download.o.o), because you cannot control what mirror servers will be doing with symbolic links. This means there should be no symbolic links in the download area. Which I assume will not happen.
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.
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.
The least intrusive change is to link all checksum files as well. Then users coming via browser will get (sort of) expected result
I think that's what I tried to say in one of my first responses in this thread, talking to Stephan.
As you just demonstrated this will break direct mirror access. The only clean fix is to avoid symlinks at all. Everything else is choosing the lest evil.