Bug 14777 - 5b1: Unable to make changes in MSEC: System Security and Audit
Summary: 5b1: Unable to make changes in MSEC: System Security and Audit
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
: 15777 (view as bug list)
Depends on:
Blocks: 11778
  Show dependency treegraph
 
Reported: 2014-12-11 12:18 CET by Bit Twister
Modified: 2015-08-24 10:54 CEST (History)
6 users (show)

See Also:
Source RPM: msec-gui-1.6-1.mga5
CVE:
Status comment:


Attachments
decode error and pack_start errors (1.02 KB, patch)
2015-04-27 18:52 CEST, Philippe Makowski
Details | Diff

Description Bit Twister 2014-12-11 12:18:09 CET
Description of problem:

Unable to make changes in MSEC: System Security and Audit
Double clicking creates terminal message

 Traceback (most recent call last):
  File "/usr/share/msec/msecgui.py", line 1662, in option_changed
    dialog.vbox.pack_start(Gtk.HSeparator())
TypeError: pack_start() takes exactly 5 arguments (2 given)

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


How reproducible: Always


Steps to Reproduce:
1. click up a terminal
2. mcc &
3. Click Security (left Panel)
3. Click Configure system security, permissions and audit (right panel)
4. click Security settings tab (top of screen)
5. click System security tab
6. click any item
7. double click it

Note error messages in terminal


Reproducible: 

Steps to Reproduce:
David Walser 2014-12-20 01:26:25 CET

CC: (none) => mageia

Comment 1 psyca 2015-03-07 21:20:00 CET
Same here.
I cant change something in the gui.
Mageia 5 Beta 3 [last update : 7 March 2015]

-----


INFO: Starting gui..
INFO: Die Exceptions-Datei /etc/security/msec/exceptions wird geladen: Datei oder Verzeichnis nicht gefunden
INFO: Keine Exceptions geladen
INFO: MSEC Basisebene 'standard' gefunden
/usr/share/msec/msecgui.py:213: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  filemenu = Gtk.MenuItem(topmenu, use_underline=True)
/usr/share/msec/msecgui.py:219: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  menuitem = Gtk.MenuItem(submenu, use_underline=True)
/usr/share/msec/msecgui.py:236: DeprecationWarning: Gtk.modify_font is deprecated
  label.modify_font(Pango.FontDescription("13"))
/usr/share/msec/msecgui.py:572: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "n_rows, n_columns, homogeneous" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  table = Gtk.Table(4, 4, False)
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py:1445: DeprecationWarning: Gtk.attach is deprecated
  Gtk.Table.attach(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions, yoptions, xpadding, ypadding)
/usr/share/msec/msecgui.py:604: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Configure"))
/usr/share/msec/msecgui.py:618: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Update now"))
/usr/share/msec/msecgui.py:646: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Configure"))
/usr/share/msec/msecgui.py:667: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Show results"))
/usr/share/msec/msecgui.py:673: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Run now"))
/usr/share/msec/msecgui.py:832: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  treeview = Gtk.TreeView(lstore)
/usr/share/msec/msecgui.py:833: DeprecationWarning: Gtk.set_rules_hint is deprecated
  treeview.set_rules_hint(True)
/usr/share/msec/msecgui.py:897: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.notify_mail = Gtk.CheckButton(_("Send security alerts by email to:"))
/usr/share/msec/msecgui.py:919: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.notify_desktop = Gtk.CheckButton(_("Display security alerts on desktop"))
/usr/share/msec/msecgui.py:490: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  treeview = Gtk.TreeView(lstore)
/usr/share/msec/msecgui.py:1103: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.periodic_checks = Gtk.CheckButton(_("Enable periodic security checks"))
/usr/share/msec/msecgui.py:1155: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  treeview = Gtk.TreeView(lstore)
/usr/share/msec/msecgui.py:1192: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Add a rule"))
/usr/share/msec/msecgui.py:1197: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Delete"))
/usr/share/msec/msecgui.py:1227: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  treeview = Gtk.TreeView(lstore)
/usr/share/msec/msecgui.py:1319: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Add a rule"))
/usr/share/msec/msecgui.py:1324: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  button = Gtk.Button(_("Delete"))
/usr/share/msec/msecgui.py:1650: PyGTKDeprecationWarning: The "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py:537: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "title, transient_for, flags, add_buttons" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self._init(*args, **new_kwargs)
Traceback (most recent call last):
  File "/usr/share/msec/msecgui.py", line 1662, in option_changed
    dialog.vbox.pack_start(Gtk.HSeparator())
TypeError: pack_start() takes exactly 5 arguments (2 given)
Traceback (most recent call last):
  File "/usr/share/msec/msecgui.py", line 1658, in option_changed
    def_start, val_def, def_end,))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 195: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/share/msec/msecgui.py", line 1658, in option_changed
    def_start, val_def, def_end,))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)

CC: (none) => linux

psyca 2015-04-05 23:46:53 CEST

Source RPM: msec-1.4-3.mga5.src.rpm => msec-gui-1.6-1.mga5

Comment 2 Rémi Verschelde 2015-04-26 21:19:11 CEST
CC'ing Thierry who probably knows most about msec, and also Philippe and Yves who have experience with python.

CC: (none) => makowski.mageia, thierry.vignaud, yves.brungard_mageia
Severity: normal => major

Comment 3 Philippe Makowski 2015-04-27 09:21:10 CEST
seems that this commit was not the good one :
http://gitweb.mageia.org/software/msec/commit/src/msec/msecgui.py?id=3b648feb5cb907218702c9e469cff98dba7524d3

may be we need to revert it, at least we need to provide all the needed arguments
http://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Box.html#Gtk.Box.pack_start
Comment 4 Philippe Makowski 2015-04-27 18:52:06 CEST
Created attachment 6382 [details]
decode error and pack_start errors

Please consider this patch, it should fix the reported bug
Rémi Verschelde 2015-04-27 22:10:19 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=15777

Comment 5 Mageia Robot 2015-05-01 00:56:12 CEST
commit 1b918b5c600ee94310fa2eacaf76d03d3df71876
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Fri May 1 00:53:22 2015 +0200

    fix broken config buttons after migration to gtk3
    
    (Philippe Makowski, mga#14777)
---
 Commit Link:
   http://gitweb.mageia.org/software/msec/commit/?id=1b918b5c600ee94310fa2eacaf76d03d3df71876
Comment 6 Thierry Vignaud 2015-05-01 00:57:17 CEST
Thanks.
Closing

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

Comment 7 Thierry Vignaud 2015-05-01 00:57:39 CEST
We should probably push msec-1.8 as an update to mga4 though
Comment 8 Samuel Verschelde 2015-05-01 13:05:44 CEST
(In reply to Thierry Vignaud from comment #7)
> We should probably push msec-1.8 as an update to mga4 though

I'm reopening it and setting version to Mageia 4 then.

Keywords: (none) => PATCH
Status: RESOLVED => REOPENED
Version: Cauldron => 4
Resolution: FIXED => (none)

Comment 9 Thierry Vignaud 2015-05-01 15:11:07 CEST
No actually we shipped gtk2 msec in mga4

Status: REOPENED => RESOLVED
Version: 4 => Cauldron
Resolution: (none) => FIXED

Comment 10 Samuel Verschelde 2015-05-19 12:29:46 CEST
*** Bug 15777 has been marked as a duplicate of this bug. ***

CC: (none) => ashvinlobo

Comment 11 Samuel Verschelde 2015-05-19 12:39:43 CEST
Was not fixed actually, see follow-up in bug 15981
Thierry Vignaud 2015-08-24 10:54:12 CEST

Blocks: (none) => 11778


Note You need to log in before you can comment on or make changes to this bug.