Bug 14586

Summary: msec-gui hangs: Gtk.Expander(_("Details")) TypeError: GObject.__init__() takes exactly 0 arguments (1 given)
Product: Mageia Reporter: Juergen Harms <juergen.harms>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: inetcustomer-mageia, neoser10
Version: CauldronKeywords: PATCH
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: 5beta1
Source RPM: msec-1.4-3.mga5.src.rpm CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 11778    
Attachments: Konsole output when launching msecgui from a console
Edited drakconf log from console

Description Juergen Harms 2014-11-17 18:00:22 CET
Description of problem:

Drakconf (msecgui) fails to modify the "recipient of security email alerts" settings.


Scenario 1 (launch from the drakconf gui)
------------

Drakconf-> Security -> Configure system security ...

That launches the "MSEC: System Security and Audit" - which has an entry box for modifying the destination address for email alerts.

After modifying the email address, the programme does not respond any more. 


File-> Save configuration
   and
File->Quit 
does not have any consequence, nor does the window kill button. The only way to terminate is a kill pid.

(Note: if I do not modify the email address for the alerts, I can exit without problems).

Some details
- after using xkill, I always find a an msecgui.py when I do ps -A
- if I run drakconf or msecgui from a root konsole, I get a respectable christmas tree of error messages - see annex


Scenario 2 (launch from a root-konsole command line, command = msecgui)
-----------

"File -> Save configuration" does nothing, but "File Quit" allows to normally exit. 


Version-Release number of selected component (if applicable):


How reproducible:

always


Steps to Reproduce:
1. Launch msecgui from a root console (or use the drakconf gui)
2. Modify the "Send security alerts by email to:" entry box
3. Try to exit with "File->Save configuration"

I am trying to modify the notification email address from 
  harms@unige.ch
     to
  harms@localhost
to correct a fault that I probably committed during system generation

Reproducible: 

Steps to Reproduce:
Comment 1 Juergen Harms 2014-11-17 18:13:00 CET
Created attachment 5609 [details]
Konsole output when launching msecgui from a console
Juergen Harms 2014-11-17 18:15:36 CET

Whiteboard: (none) => 5beta1

David Walser 2014-11-18 04:55:53 CET

Assignee: bugsquad => thierry.vignaud

Thierry Vignaud 2014-11-20 17:54:41 CET

Attachment 5609 mime type: application/octet-stream => text/plain

Comment 2 Thierry Vignaud 2014-11-20 17:58:09 CET
Can you try using
   Gtk.Expander(label=_("Details"))
instead of:
   Gtk.Expander(_("Details"))

Summary: Drakconf hangs: Drakconf -> Security -> Configure System => msec-gui hangs: Gtk.Expander(_("Details")) TypeError: GObject.__init__() takes exactly 0 arguments (1 given)
Status: NEW => ASSIGNED

Comment 3 Big YellowHats 2015-01-24 19:29:15 CET
In  /usr/share/msec/msecgui.py  I replaced ALL instances of:

   Gtk.Expander(_  
with:
   Gtk.Expander(label=_

and functioning _seemed_ to return to normal.

(Lines 397, 403, and 417)

CC: (none) => inetcustomer-mageia

Comment 4 Mauricio Andrés Bustamante Viveros 2015-04-30 09:10:40 CEST
TV: I have the same behavior in a cauldron installed with RC public release iso downloaded by torrent from (ufpr.br), and updated with the core release from the same mirror, but if return the send security alerts by email to the original user (root), msec closes as expected, please see the next attached file that is the full log when I run drakconf and go to msec section from console (edited to explain what buttons I press in every section of attachment)

CC: (none) => neoser10

Comment 5 Mauricio Andrés Bustamante Viveros 2015-04-30 09:21:15 CEST
Created attachment 6402 [details]
Edited drakconf log from console

this is the source rpm of the msec package installed

Signature   : RSA/SHA1, Mon 09 Feb 2015 09:46:15 AM GMT, Key ID b742fa8b80420f66
Source RPM  : msec-1.6-1.mga5.src.rpm
Build Date  : Mon 09 Feb 2015 09:41:43 AM GMT
Build Host  : rabbit.mageia.org
Comment 6 Rémi Verschelde 2015-04-30 09:48:32 CEST
(In reply to Thierry Vignaud from comment #2)
> Can you try using
>    Gtk.Expander(label=_("Details"))
> instead of:
>    Gtk.Expander(_("Details"))

Comment 3 seems to say that this fix would be sufficient. Should we go on and add this to msecgui?
Comment 7 Thierry Vignaud 2015-04-30 10:08:12 CEST
Yes, go on.

Keywords: (none) => PATCH
Blocks: (none) => 11778

Comment 8 Mageia Robot 2015-04-30 10:20:06 CEST
commit ce3090f8b6d3b08fe2b64f21c89389db71d110c6
Author: Rémi Verschelde <rverschelde@...>
Date:   Thu Apr 30 10:19:55 2015 +0200

    Add "label=" argument for Gtk.Expander calls (Thierry Vignaud, mga#14586)
---
 Commit Link:
   http://gitweb.mageia.org/software/msec/commit/?id=ce3090f8b6d3b08fe2b64f21c89389db71d110c6
Comment 9 Thierry Vignaud 2015-04-30 10:21:52 CEST
Please also bump the version in NEWS & Makefile
Comment 10 Rémi Verschelde 2015-04-30 10:28:25 CEST
Will do, and update the package.
Comment 11 Thierry Vignaud 2015-05-01 00:58:09 CEST
Closing

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 12 Rémi Verschelde 2015-05-01 08:50:43 CEST
Thanks for pushing the package, for some reason I can't use mgarepo anymore :-/