Opened 11 years ago
Closed 10 years ago
#3301 closed defect (notsugar)
Sugar doesn't start up if ~/.sugar/default/nm/connections.cfg was written by previous version
| Reported by: | sascha_silbe | Owned by: | ajay_garg |
|---|---|---|---|
| Priority: | Normal | Milestone: | Unspecified |
| Component: | Dextrose | Version: | Git as of bugdate |
| Severity: | Major | Keywords: | dx3 |
| Cc: | Distribution/OS: | ||
| Bug Status: | New |
Description
When updating from a previous version of Sugar, Sugar will fail to start up at all if ~/.sugar/default/nm/connections.cfg contains any network:
Traceback (most recent call last):
File "/home/sascha.silbe/sugar-jhbuild/install/bin/sugar-session", line 329, in <module>
main()
File "/home/sascha.silbe/sugar-jhbuild/install/bin/sugar-session", line 305, in main
home_window = homewindow.get_instance()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/desktop/homewindow.py", line 244, in get_instance
_instance = HomeWindow()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/desktop/homewindow.py", line 79, in __init__
self._mesh_box = MeshBox()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/desktop/meshbox.py", line 460, in __init__
netmgr_observer.listen()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/desktop/meshbox.py", line 323, in listen
settings = network.get_settings()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/model/network.py", line 826, in get_settings
load_connections()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/model/network.py", line 975, in load_connections
load_wifi_connections()
File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/model/network.py", line 922, in load_wifi_connections
value = eval(config.get(section, 'proto'))
File "<string>", line 1, in <module>
NameError: name 'rsn' is not defined
This is because the patch to add support for WPA-Enterprise changed the configuration syntax without any upgrade path.
Also, because the new syntax is not backwards-compatible, it also makes testing the Dextrose version of Sugar in sugar-jhbuild cumbersome: as Sugar 0.94 (using NM 0.8) doesn't work with system settings, the user (developer) needs to have two different versions of ~/.sugar/default/nm/connections.cfg, switching them whenever they change between Dextrose and upstream branches.
Change History (2)
comment:1 Changed 11 years ago by m_anish
- Keywords dx3 added
- Owner changed from m_anish to ajay_garg
- Priority changed from Unspecified by Maintainer to Normal
- Severity changed from Blocker to Major
- Status changed from new to assigned
comment:2 Changed 10 years ago by dnarvaez
- Resolution set to notsugar
- Status changed from assigned to closed
Dextrose is not tracked here anymore.