Torrent Checksums Links Broken

Progetto:Web
Componente:Main
Categoria:segnalazione di bug
Priorità:normal
Assigned:david
Stato:closed
Descrizione

The following link is to the mini-trisquel 7.0 64bit torrent download checksum.

I get a 404 while trying to download it.

I've attached a screen shot.

http://cdimage.trisquel.info/trisquel-images/trisquel-mini_7.0_amd64.iso.torrent.md5

AllegatoDimensione
not_found1.PNG32.67 KB
Mar, 09/15/2015 - 01:24
Titolo:checksum not found» Torrent Checksums Links Broken

Actually this happens with any Trisquel torrent file not only to md5 but also to ASCII armor files too. However this is not happening to gpg signatures.
The problem is not that the files are not there but the URLs are wrong. The iso files extension is .iso but the extension of torrent files are ".iso.torrent. The links of the ftp points to .iso.md5|.asc. So the links must be shortened to .iso(.md5|.asc) instead of .iso.torrent.(md5|asc)

For example the link above is:

http://cdimage.trisquel.info/trisquel-images/trisquel-mini_7.0_amd64.iso.torrent.md5

And it must be replaced to:

http://cdimage.trisquel.info/trisquel-images/trisquel-mini_7.0_amd64.iso.md5

The same applies to .asc files

CHANGED TO TORRENT CHECKSUMS LINKS BROKEN BECAUSE IT EXPLAINS IT BETTER AND THE FILES DOES EXISTS.

Mer, 02/24/2016 - 10:31
Assegnato a:anonymous» david
Stato:active» fixed

A long standing bug, but I think I have fixed it now.

The .md5 and .asc links point now properly to the relevant iso checksums even when downloading via torrent (previously it attempted to show md5 and asc files for the .torrent file itself, instead of the ones for the isos).

Feel free to reopen the bug if you find it doesn't really work.

Mer, 03/09/2016 - 10:35
Stato:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

Sab, 04/28/2018 - 15:13
Stato:closed» active

Still reproducible, both with JavaScript completely enabled and with no JS.

It seems that the server-side script is making an anchor/link that references to wrong file path.

In client-side, it's mostly a matter of removing the ".torrent" from the URL.

I don't have complete corresponding source for the server-side scripts for the website, but in Scheme, one could do:

;; Hard-coded for example purposes.
(define torrent-md5-file-path "https://cdimage.trisquel.info/trisquel-images/trisquel_8.0_amd64.iso.torrent.md5")

(define torrent-extension (make-regexp "\\.torrent"))

(regexp-substitute #f
                   (regexp-exec torrent-extension
                                torrent-md5-file-path)
                   'pre
                   'post)

Of course this must be adapted to usage for the web server, one of the Scheme interpreter, GNU Guile, provides HTTP and Web server functionalities. GNU Artanis is a Web framework that further enhances and facilitates dealing with GNU Guile's HTTP and Web modules.

Sab, 04/24/2021 - 19:24
Stato:active» fixed

I've tried to fix this long-standing issue again, I think it works properly now in all cases.

Sab, 05/08/2021 - 19:25
Stato:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.