41
41
o unavailable for wired -> unplugged
44
= Wrong SSID bug notes =
46
The problem is that ConnectionEditor::addConnection picks an existing uuid after kconfigshell is invoked for the first time. Likely causes:
47
- QUuid::createUuid() produces duplicate uuids, can't be guaranteed unique
48
- it seems that the first uuid generated is often already there
49
- I've not seen it happening twice, so in fact just called QUuid::createUuid() before we try to generate connectionId is enough, but better safe than sorry, so we check that now
51
- a file /home/sebas/.kde4/share/apps/networkmanagement/connections/$NEW_UUID already exists, and triggers updating the config with its value
52
- the uuid returned by QUuid::createUuid() must not exist there already, otherwise this bug is triggered
55
- try harder to find a non-existing uuid for storing the config in ConnectionEditor::addConnection
57
== Steps to reproduce ==
58
- tools/show-ap.py, find a valid accesspoint number, which is NOT a current connnection
59
./showap.py 2>&1 |g -v Cannot
60
- needs to be run TWICE after make to reproduce:
61
/home/sebas/kdesvn/install/lib/kde4/libexec/networkmanagement_configshell create --type 802-11-wireless --specific-args "/org/freedesktop/NetworkManager/Devices/1 /org/freedesktop/NetworkManager/AccessPoint/9 wifi_pass" -
62
(change AP id from show-ap, or look into tools/invoke-config.py)
65
- tail -f ~/.xsession-errors to see the debug output of the configshell
66
- killall kded4 ; sleep 3; kded4 to see the debug output of what's being invoked (this part should be fine, bug seems to be in configshell or uuid)
70
- invoke conigshell with valid connection three times
71
- invoke conigshell with new AP three times
72
- invoke different new wireless networks from plasmoid
74
-> verify that always the correct ssid and connection name is set in the UI
76
don't forget to restart kded4 after rebuilding