network_check crashed with InvalidURL in _set_hostport(): nonnumeric port: ' text'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
checkbox (Ubuntu) |
Fix Released
|
Medium
|
Daniel Manrique | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: checkbox
[Impact]
network_check crashes when an invalid http_proxy variable is set. Various other things would fail if the user has an invalid http_proxy, but this test should be robust enough to not crash with an exception in this case.
The fix from the development version simply handles the InvalidURL exception thrown, by adding it to an already-present exception-handling block. Essentially we already knew how to handle certain exceptions, and had code for that, but weren't catching InvalidURL.
[Test case]
- Run this command:
http_proxy='http://
-Expected result:
- A dialog indicating http connection failed
Actual result:
- Exception stack trace ending with:
raise InvalidURL(
httplib.InvalidURL: nonnumeric port: ' text'
[Regression potential]
We're just catching an exception that we weren't before, and it's raised only in cases where the given proxy URL *is* invalid. So the potential for regressions is virtually none.
ProblemType: CrashDistroRelease: Ubuntu 11.04
Package: checkbox 0.11.2
ProcVersionSign
Uname: Linux 2.6.38-7-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Tue Apr 5 19:28:26 2011
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/share/
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
LANG=fr_CH.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
Title: network_check crashed with InvalidURL in _set_hostport(): nonnumeric port: ' text'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
- Marc Tardif (community): Approve
-
Diff: 42 lines (+5/-2)2 files modifieddebian/changelog (+3/-1)
scripts/network_check (+2/-1)
- Mathieu Trudel-Lapierre: Approve
- Ubuntu branches: Pending requested
-
Diff: 16202 lines (+2632/-4581)140 files modifiedcheckbox/parsers/tests/udevadm.py (+13/-1)
checkbox/parsers/udevadm.py (+3/-1)
checkbox/user_interface.py (+7/-1)
debian/changelog (+68/-0)
debian/po/ast.po (+2/-2)
debian/po/cs.po (+2/-2)
debian/po/de.po (+2/-2)
debian/po/en_AU.po (+2/-2)
debian/po/en_GB.po (+2/-2)
debian/po/es.po (+2/-2)
debian/po/fr.po (+2/-2)
debian/po/he.po (+2/-2)
debian/po/hu.po (+2/-2)
debian/po/it.po (+2/-2)
debian/po/ja.po (+2/-2)
debian/po/nl.po (+2/-2)
debian/po/oc.po (+2/-2)
debian/po/pl.po (+2/-2)
debian/po/pt_BR.po (+2/-2)
debian/po/ro.po (+2/-2)
debian/po/ru.po (+2/-2)
debian/po/tr.po (+2/-2)
debian/po/uk.po (+2/-2)
debian/po/zh_CN.po (+2/-2)
debian/po/zh_TW.po (+2/-2)
jobs/audio.txt.in (+1/-1)
jobs/cpu.txt.in (+3/-2)
jobs/disk.txt.in (+6/-6)
jobs/info.txt.in (+2/-2)
jobs/local.txt.in (+1/-1)
jobs/miscellanea.txt.in (+1/-1)
jobs/usb.txt.in (+18/-0)
jobs/user_apps.txt.in (+3/-1)
plugins/apport_prompt.py (+5/-6)
po/ace.po (+19/-19)
po/af.po (+19/-19)
po/am.po (+19/-19)
po/ar.po (+19/-19)
po/ast.po (+19/-19)
po/az.po (+19/-19)
po/be.po (+19/-19)
po/bg.po (+19/-19)
po/bn.po (+19/-19)
po/bo.po (+19/-19)
po/br.po (+19/-19)
po/bs.po (+19/-19)
po/ca.po (+19/-19)
po/ca@valencia.po (+19/-19)
po/ckb.po (+19/-19)
po/cs.po (+19/-19)
po/cy.po (+19/-19)
po/da.po (+19/-19)
po/de.po (+19/-19)
po/dv.po (+19/-19)
po/el.po (+19/-19)
po/en_AU.po (+19/-19)
po/en_CA.po (+19/-19)
po/en_GB.po (+19/-19)
po/eo.po (+19/-19)
po/es.po (+19/-19)
po/et.po (+19/-19)
po/eu.po (+19/-19)
po/fa.po (+19/-19)
po/fi.po (+19/-19)
po/fr.po (+19/-19)
po/ga.po (+19/-19)
po/gd.po (+19/-19)
po/gl.po (+19/-19)
po/he.po (+19/-19)
po/hi.po (+19/-19)
po/hr.po (+19/-19)
po/hu.po (+19/-19)
po/hy.po (+19/-19)
po/id.po (+19/-19)
po/is.po (+19/-19)
po/it.po (+19/-19)
po/ja.po (+19/-19)
po/jbo.po (+19/-19)
po/ka.po (+19/-19)
po/kk.po (+19/-19)
po/km.po (+19/-19)
po/kn.po (+19/-19)
po/ko.po (+19/-19)
po/ku.po (+19/-19)
po/ky.po (+19/-19)
po/lt.po (+19/-19)
po/lv.po (+19/-19)
po/mk.po (+19/-19)
po/ml.po (+19/-19)
po/mr.po (+19/-19)
po/ms.po (+19/-19)
po/my.po (+19/-19)
po/nb.po (+19/-19)
po/nds.po (+19/-19)
po/ne.po (+19/-19)
po/nl.po (+19/-19)
po/nn.po (+19/-19)
po/oc.po (+19/-19)
po/pl.po (+19/-19)
po/ps.po (+19/-19)
po/pt.po (+19/-19)
po/pt_BR.po (+19/-19)
po/ro.po (+19/-19)
po/ru.po (+19/-19)
po/sd.po (+19/-19)
po/shn.po (+19/-19)
po/si.po (+19/-19)
po/sk.po (+19/-19)
po/sl.po (+19/-19)
po/sq.po (+120/-84)
po/sr.po (+19/-19)
po/sv.po (+19/-19)
po/ta.po (+19/-19)
po/te.po (+19/-19)
po/th.po (+19/-19)
po/tr.po (+19/-19)
po/ug.po (+19/-19)
po/uk.po (+36/-34)
po/ur.po (+19/-19)
po/uz.po (+19/-19)
po/vi.po (+19/-19)
po/zh_CN.po (+19/-19)
po/zh_HK.po (+19/-19)
po/zh_TW.po (+19/-19)
qt/checkbox-qt-head.svg (+163/-0)
qt/checkbox.svg (+0/-2478)
qt/frontend/qtfront.cpp (+34/-38)
qt/frontend/qtfront.h (+3/-3)
qt/frontend/qtfront.ui (+158/-173)
qt/frontend/treemodel.cpp (+0/-1)
scripts/block_device_resource (+39/-4)
scripts/cycle_vts (+27/-0)
scripts/disk_read_performance_test (+14/-1)
scripts/disk_smart (+16/-8)
scripts/efi_resource (+1/-1)
scripts/gconf_resource (+5/-6)
scripts/gpu_test (+0/-4)
scripts/network_check (+2/-1)
scripts/network_device_info (+167/-7)
scripts/package_resource (+2/-1)
tags: | removed: need-duplicate-check |
Changed in checkbox (Ubuntu): | |
importance: | Undecided → Medium |
Changed in checkbox (Ubuntu): | |
status: | In Progress → Fix Committed |
status: | Fix Committed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.