[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1056051: reportbug: obsolete NEWQUEUE_URL, giving a 301 Moved Permanently, which is ignored



Package: reportbug
Version: 12.0.0
Severity: normal

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.

-- Package-specific info:
** Environment settings:
EDITOR="/home/vinc17/bin/eclient"
PAGER="less -Lis"
VISUAL="/home/vinc17/bin/eclient"
EMAIL="vincent@vinc17.net"
INTERFACE="text"

** /home/vinc17/.reportbugrc:
reportbug_version "2.10"
mode advanced
ui text
realname "Vincent Lefevre"
email "vincent@vinc17.net"
mua mutt
cc
timeout 20

-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (900, 'stable-updates'), (900, 'stable-security'), (900, 'stable-debug'), (900, 'proposed-updates-debug'), (900, 'stable'), (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-13-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages reportbug depends on:
ii  apt                2.6.1
ii  python3            3.11.2-1+b1
ii  python3-reportbug  12.0.0
ii  sensible-utils     0.0.17+nmu1

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                      <none>
ii  debconf                         1.5.82
ii  debsums                         3.0.2.1
ii  dlocate                         1.12
ii  emacs-bin-common                1:28.2+1-15
ii  file                            1:5.44-3
ii  gnupg                           2.2.40-1.1
ii  postfix [mail-transport-agent]  3.7.6-0+deb12u2
pn  python3-urwid                   <none>
pn  reportbug-gtk                   <none>
ii  xdg-utils                       1.1.3-4.1

Versions of packages python3-reportbug depends on:
ii  apt                2.6.1
ii  file               1:5.44-3
ii  python3            3.11.2-1+b1
ii  python3-apt        2.6.0
ii  python3-debian     0.1.49
ii  python3-debianbts  4.0.1
ii  python3-requests   2.28.1+dfsg-1
ii  sensible-utils     0.0.17+nmu1

python3-reportbug suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: