Comment 1 for bug 824508

bat bast (bat-bast) wrote :

With Precise version (wicd 1.7.2.3-1ubuntu0.1), wicd client crash when some hidden networks exist :
bast@batpiisi:~/tmp$ wicd-cli -ly
# BSSID Channel ESSID
Traceback (most recent call last):
  File "/usr/share/wicd/cli/wicd-cli.py", line 113, in <module>
    wireless.GetWirelessProperty(network_id, 'essid'))
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 751, in _message_cb
    _method_reply_return(connection, message, method_name, signature, *retval)
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 254, in _method_reply_return
    reply.append(signature=signature, *retval)
TypeError: expected string without null bytes

A solution is in the file /usr/share/pyshared/wicd/wnettools.py : change the visibility of the network
1281 if ap['essid'] in ['Hidden', '<hidden>', "", None]:
1282 print 'hidden'
1283 # BAST
1284 #ap['hidden'] = True
1285 ap['hidden'] = False
1286 ap['essid'] = "<hidden>"
1287 else:
1288 ap['hidden'] = False