Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong filename in checksum file #386

Open
Nokhrin opened this issue May 27, 2023 · 3 comments
Open

Wrong filename in checksum file #386

Nokhrin opened this issue May 27, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Nokhrin
Copy link

Nokhrin commented May 27, 2023

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
Copy link
Collaborator

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
Copy link
Author

Nokhrin commented Jun 2, 2023

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
Copy link
Collaborator

andrii-suse commented Jun 7, 2023

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:

  • the problem is a bit tricky
  • easy workarounds exist (use curl or even aria2c or --content-disposition with wget)
  • not clear where to fix it (these files are created by OBS publisher, so it is not exactly problem with MirrorCache, even though it can be worked around).

it will probably stay with low priority for now.

@andrii-suse andrii-suse added the enhancement New feature or request label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants