Mythbuntu bare causes MCC to throw an error on startup

Bug #1612001 reported by Thomas Mashos on 2016-08-11
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Committed
Medium
Thomas Mashos
16.04
New
Undecided
Unassigned
16.10
New
Undecided
Unassigned

Bug Description

[Impact]
When starting mythbuntu-control-centre an error is thrown "Exception in applyStateToGUI of plugin Plugins. Disabling Plugin.". This is because we're trying to read a config file that may not exist. This is resolved by checking if the config file exists before reading it.

[Test Case]
Open mythbuntu-control-centre with an unpatched mythbuntu-bare-client installed via command line and note the error "configparser.NoSectionError: No section: 'General'"

IMPORTANT: There is a second error you may see on the command line "AttributeError: 'MythPluginsPlugin' object has no attribute 'mythweb_password_combobox'"
 that is due to bug LP:1581971 which is caused in another package and will throw the same GUI error until patched.

[Regression Potential]
Low. We're checking if the file exists prior to reading it now. In the event the file doesn't exist, we still set the defaults as before (we just don't try to read something that doesn't exist). This is pretty self contained inside mythbuntu-control-centre, so any regressions would be limited to that tab

Thomas Mashos (tgm4883) on 2016-08-11
Changed in mythbuntu:
assignee: nobody → Thomas Mashos (tgm4883)
Thomas Mashos (tgm4883) wrote :

Throws errors when the config file isn't present before setting defaults. We should check if the file exists first

Changed in mythbuntu:
importance: Undecided → Medium
status: New → Fix Committed
Thomas Mashos (tgm4883) on 2016-08-11
description: updated
Thomas Mashos (tgm4883) on 2016-08-11
description: updated
draco (draco31-fr) wrote :

Please could you tell where to create the file, and which default content to set, to avoid this error ?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers