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

2020-06-18 Thread Adam D. Barratt
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 
+
+++ ./parse-sources 2020-02-27 09:49:07.123732777 +
@@ -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



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

2020-06-18 Thread Laura Arjona Reina
retitle 959755 Package pages for source/buster-backports gets 500 error
thanks

Hello
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)

URL for non-existing packages do return a page (HTTP 200)
For instance
https://packages.debian.org/source/stable-backports/foobar

I have checked them too, and I can reproduce the error, so it's not
limited to openldap package.

Kind regards,
-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona