Torrent Checksums Links Broken

Project:Web
Component:Main
Category:bug report
Priority:normal
Assigned:david
Status:active
Description

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

AttachmentSize
not_found1.PNG32.67 KB
Tue, 09/15/2015 - 02:24
Title: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.

Wed, 02/24/2016 - 11:31
Assigned to:anonymous» david
Status: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.

Wed, 03/09/2016 - 11:35
Status:fixed» closed

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

Sat, 04/28/2018 - 16:13
Status: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.