[Bugs] #2488 UNSP: Cannot connect to adhoc network with name less than 8 characters
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Fri Nov 5 20:27:34 EDT 2010
#2488: Cannot connect to adhoc network with name less than 8 characters
------------------------------------------+---------------------------------
Reporter: carrott | Owner:
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: untriaged | Version: 0.88.x
Severity: Unspecified | Keywords: dextrose
Status_field: Unconfirmed | Distribution: Unspecified
Seeta_dev: |
------------------------------------------+---------------------------------
meshbox.py and network.py attempt to recover an adhoc network's colours
from the network's name but this code fails if the name is too short. Such
networks just don't show up in the neighbourhood view.
See attached adhoc-name.patch for a fix. Even with this fix, it is likely
that a pathological network name can still cause problems. I didn't
perform any significant testing after I got my adhoc network to work.
File "/usr/lib/python2.6/site-packages/jarabe/desktop/meshbox.py", line
1077, in _ap_props_changed_cb
self._add_ap_to_network(ap)
File "/usr/lib/python2.6/site-packages/jarabe/desktop/meshbox.py", line
1054, in _add_ap_to_network
icon = WirelessNetworkView(ap)
File "/usr/lib/python2.6/site-packages/jarabe/desktop/meshbox.py", line
93, in __init__
and self._name_encodes_colors():
File "/usr/lib/python2.6/site-packages/jarabe/desktop/meshbox.py", line
151, in _name_encodes_colors
return self._name[-7] == '#' and self._name[-8] == ',' \
IndexError: string index out of range
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2488>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list