openSUSE / MirrorCache

Download Redirector
https://opensuse.github.io/MirrorCache/
GNU General Public License v2.0
35 stars 12 forks source link

Wrong filename in checksum file #386

Open Nokhrin opened 1 year ago

Nokhrin commented 1 year ago

https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso.sha256

The sum is correct, but name of the file in .sha256 is openSUSE-Tumbleweed-DVD-x86_64-Snapshot20230525-Media.iso instead of openSUSE-Tumbleweed-DVD-x86_64-Current.iso

andrii-suse commented 1 year ago

How do you download that file?

My personal understanding is that dealing with 'Current' is a bit confusing, because you never know what exact snapshot is there and next minute after download 'Current' file may become obsolete and not current anymore. This is why the engine redirects to particular snapshot when you try to download, e.g.:

> curl -IL https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso.sha256
HTTP/2 302 
location: https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Snapshot20230529-Media.iso.sha256
content-type: text/html; charset=iso-8859-1
date: Wed, 31 May 2023 08:08:21 GMT
server: Apache

HTTP/2 200 
content-disposition: attachment;filename="openSUSE-Tumbleweed-DVD-x86_64-Snapshot20230529-Media.iso.sha256"

I know it is not a solution to the problem, but it is tricky - because in filesystem Current is a symlink to particular snapshot, so it is not about 'wrong filename', but more about the way the files should be generated.

Nokhrin commented 1 year ago

I do right click with mouse and click "copy link". Then I download using wget. The same result with "save link as". You can try it with link in my first message.

andrii-suse commented 1 year ago

Both Firefox and Chromium suggest me name with Snapshot when I try 'save link as'. wget will have correct filename if --content-disposition flag is used.

I admit that these are poor excuses, but since:

it will probably stay with low priority for now.