Bug#959755: Bug #959755: Package pages for source/buster-backports gets 500 error

"Adam D. Barratt" <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <a2154ff2e919d4e415d516f1a8f9f590c23284b7.camel__12737.0865362295$1592490085$gmane$org@adam-barratt.org.uk>
On Thu, 2020-06-18 at 14:39 +0200, Laura Arjona Reina wrote:
> I still can reproduce this error, and also today webmaster@ received
> a report about some more URLs failing.
> 
> URL for existing packages in stable-backports report a HTTP 500 error
> at the time of writing (Thu, 18 Jun 2020 10:25:41 +0200).
> For instance:
> https://packages.debian.org/source/stable-backports/linux
> https://packages.debian.org/source/stable-backports/apt-cacher-ng
> do not work (HTTP 500)

The issue is that the suite doesn't have MD5 checksums enabled, which
the packages.d.o code relies on. After that was diagnosed a while ago,
I thought that ftp-master were re-enabling them, but apparently that
never happened.

When I looked at this previously, this seemed to work as a short-term
"fix":

adsb@picconi:~$ diff -u /srv/packages.debian.org/bin/parse-sources ./parse-sources 
--- /srv/packages.debian.org/bin/parse-sources	2020-02-14 06:06:33.126000572 +0000
+++ ./parse-sources	2020-02-27 09:49:07.123732777 +0000
@@ -103,6 +103,7 @@
 		$source_names_suite{$data{'package'}} = 1;
 		delete $data{'binary'};
 
+		$data{files} = $data{'checksums-sha256'} unless $data{files};
 		$data{files} =~ s/\s*\n\s*/\01/sog;
 		$data{files} =~ s/^\01//sg;
 
Longer term, that should probably iterate over the list of possible
checksums and use whichever it finds first.

Rhonda: would an MR for either version of the patch here be helpful?

Regards,

Adam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.