#1056051 reportbug: obsolete NEWQUEUE_URL, giving a 301 Moved Permanently

#1056051#5
Date:
2023-11-16 11:34:17 UTC
From:
To:
In it search for newer versions of the package, reportbug outputs

  Checking for newer versions at madison and https://ftp-master.debian.org/new.html

However, /usr/lib/python3/dist-packages/reportbug/checkversions.py
has

NEWQUEUE_URL = 'http://ftp-master.debian.org/new.822'

In the strace output, I can see

193537 connect(45, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("192.91.235.231")}, 16) = -1 EINPROGRESS (Operation now in progress)
193537 poll([{fd=45, events=POLLOUT|POLLERR}], 1, 60000) = 1 ([{fd=45, revents=POLLOUT}])
193537 getsockopt(45, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
193537 poll([{fd=45, events=POLLOUT}], 1, 60000) = 1 ([{fd=45, revents=POLLOUT}])
193537 sendto(45, "GET /new.822 HTTP/1.1\r\nHost: ftp-master.debian.org\r\nUser-Agent: reportbug/12.0.0 (Debian)\r\nAccept-Encoding: gzip;q=1.0, deflate;q=0.9, identity;q=0.5\r\nAccept: */*\r\nConnection: keep-alive\r\n\r\n", 190, 0, NULL, 0) = 190
193537 ioctl(45, FIONBIO, [1])          = 0
193537 poll([{fd=45, events=POLLIN}], 1, 60000) = 1 ([{fd=45, revents=POLLIN}])
193537 recvfrom(45, "HTTP/1.1 301 Moved Permanently\r\nDate: Tue, 14 Nov 2023 14:11:18 GMT\r\nServer: Apache\r\nX-Content-Type-Options: nosniff\r\nX-Frame-Options: sameorigin\r\nReferrer-Policy: no-referrer\r\nX-Xss-Protection: 1\r\nPermissions-Policy: interest-cohort=()\r\nLocation: https://ftp-master.debian.org/new.822\r\nContent-Length: 316\r\nKeep-Alive: timeout=5, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>301 Moved Permanently</title>\n</head><body>\n<h1>Moved Permanently</h1>\n<p>The document has moved <a href=\"https://ftp-master.debian.org/new.822\">here</a>.</p>\n<hr>\n<address>Apache Server at ftp-master.debian.org Port 80</address>\n</body></html>\n", 8192, 0, NULL, NULL) = 727

So this URL gives a 301 Moved Permanently with
https://ftp-master.debian.org/new.822 as the new URL,
and reportbug does not attempt to use this new URL.

So there are several issues:

1. The NEWQUEUE_URL URL is obsolete (this seems to have been fixed
in Git, but even unstable is still affected).

2. In the output, https://ftp-master.debian.org/new.html does not match
what is actually used (or is this on purpose in case this has the same
contents?).

3. The "301 Moved Permanently" is ignored. If this is on purpose,
I think that a warning should be output in order to be aware of the
issue, in case of a future move.

#1056051#10
Date:
2023-11-16 11:48:00 UTC
From:
To:
Control: retitle -1 reportbug: obsolete NEWQUEUE_URL, giving a 301 Moved Permanently

Sorry, it actually seems to be used (the information is now encrypted
in the strace output, hence the confusion).

#1056051#24
Date:
2023-11-16 17:09:07 UTC
From:
To:
I think that the URL given in the reportbug output should
be corrected too. It says

  Checking for newer versions at madison and https://ftp-master.debian.org/new.html

but the URL will actually be https://ftp-master.debian.org/new.822
and the contents are different from new.html! See

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055931#34

#1056051#29
Date:
2026-01-10 10:10:29 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.

#1056051#34
Date:
2026-01-10 10:10:29 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.