--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: reportbug crash when with a crippled internet connection
- From: kwadronaut <kwadronaut+debian@riseup.net>
- Date: Mon, 25 Apr 2016 08:57:03 +0200
- Message-id: <146156742351.20130.10257454218233573648.reportbug@kastanje.boomgaard>
Package: reportbug
Version: 6.6.6
Severity: normal
Dear Maintainer,
when reportbug queries madison, but you're behind a captive portal
(ie, coffeeshop, public place...), reportbug crashes.
reportbug apt
Gtk-Message: Failed to load module "canberra-gtk-module"
Warning: no reportbug configuration found. Proceeding in novice mode.
Detected character set: UTF-8
Please change your locale if this is incorrect.
Using 'kwadronaut <kwadronaut@kwadronaut.boomgaard>' as your from
address.
Getting status for apt...
Checking for newer versions at madison...
Traceback (most recent call last):
File "/usr/bin/reportbug", line 2247, in <module>
main()
File "/usr/bin/reportbug", line 1115, in main
return iface.user_interface()
File "/usr/bin/reportbug", line 1636, in user_interface
http_proxy=self.options.http_proxy, arch=arch)
File "/usr/lib/python2.7/dist-packages/reportbug/checkversions.py",
line 228, in check_available
comparison = compare_versions(version, avail[dist])
File "/usr/lib/python2.7/dist-packages/reportbug/checkversions.py",
line 96, in compare_versions
return debian_support.version_compare(upstream, current)
File "/usr/lib/python2.7/dist-packages/debian/debian_support.py", line
314, in version_compare
va = Version(a)
File "/usr/lib/python2.7/dist-packages/debian/debian_support.py", line
213, in __init__
super(AptPkgVersion, self).__init__(version)
File "/usr/lib/python2.7/dist-packages/debian/debian_support.py", line
111, in __init__
self.full_version = version
File "/usr/lib/python2.7/dist-packages/debian/debian_support.py", line
137, in __setattr__
self._set_full_version(str(value))
File "/usr/lib/python2.7/dist-packages/debian/debian_support.py", line
116, in _set_full_version
raise ValueError("Invalid version string %r" % version)
ValueError: Invalid version string '(gtIEMobile7)'
I expect it to complain about crappy network connectivity, suggest to
retry with --no-query-bts, not crash like this.
Workaround is a functional network or using -b.
-- Package-specific info:
** Environment settings:
PAGER="less"
INTERFACE="text"
** /home/kwadronaut/.reportbugrc:
reportbug_version "6.6.6"
mode standard
ui text
email "kwadronaut+debian@riseup.net"
no-cc
header "X-Debbugs-CC: kwadronaut+debian@riseup.net"
smtphost reportbug.debian.org
-- System Information:
Debian Release: stretch/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages reportbug depends on:
ii apt 1.2.10
ii python-reportbug 6.6.6
pn python:any <none>
reportbug recommends no packages.
Versions of packages reportbug suggests:
pn claws-mail <none>
pn debconf-utils <none>
pn debsums <none>
pn dlocate <none>
pn emacs23-bin-common | emacs24-bin-common <none>
ii file 1:5.25-2
ii gnupg 1.4.20-6
ii nullmailer [mail-transport-agent] 1:1.13-1+b1
ii python-gtk2 2.24.0-4
pn python-gtkspellcheck <none>
pn python-urwid <none>
ii python-vte 1:0.28.2-5+b1
ii xdg-utils 1.1.1-1
Versions of packages python-reportbug depends on:
ii apt 1.2.10
ii file 1:5.25-2
ii python-debian 0.1.27
ii python-debianbts 2.6.0
pn python:any <none>
python-reportbug suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
- To: kwadronaut <kwadronaut+debian@riseup.net>, 822533-done@bugs.debian.org
- Subject: Re: [Reportbug-maint] Bug#822533: reportbug crash when with a crippled internet connection
- From: Sandro Tosi <morph@debian.org>
- Date: Tue, 1 Jan 2019 13:12:30 -0500
- Message-id: <CAB4XWXxUYquJ0F6BXF=2fD==PqydoN=byzSJogo3M+ie44ZuAQ@mail.gmail.com>
- In-reply-to: <146156742351.20130.10257454218233573648.reportbug@kastanje.boomgaard>
- References: <146156742351.20130.10257454218233573648.reportbug@kastanje.boomgaard>
> when reportbug queries madison, but you're behind a captive portal
> (ie, coffeeshop, public place...), reportbug crashes.
i dont think it's reasonable to inject wrong results into the web
services we call and expect reportbug not to crash or misbehave.
wrapping every call to check for errors will make the code more
cumbersome and hard to maintain for (honestly) not much of a gain. i'm
going to close this report. thanks!
--
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi
--- End Message ---