Version-Release number of selected component: setroubleshoot-server-3.2.8-1.fc19 Additional info: cmdline: /usr/bin/python -Es /usr/bin/sealert -s executable: /usr/bin/sealert kernel: 3.9.0-0.rc7.git3.1.fc19.x86_64 runlevel: N 5 uid: 1000 ureports_counter: 1 Truncated backtrace: catchall_boolean.py:59:get_if_text:TypeError: decoding Unicode is not supported Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/setroubleshoot/browser.py", line 674, in on_details_button_clicked message = alert.format_text() File "/usr/lib64/python2.7/site-packages/setroubleshoot/signature.py", line 551, in format_text txt = self.substitute(p.get_if_text(self.audit_event.records, args)) File "/usr/share/setroubleshoot/plugins/catchall_boolean.py", line 59, in get_if_text txt=unicode(seobject.boolean_desc(args[0]), encoding="utf8") TypeError: decoding Unicode is not supported Local variables in innermost frame: self: <plugins.catchall_boolean.plugin object at 0x61f7a90> args: ('nis_enabled', '1', 'None') avc: [<setroubleshoot.audit_data.AuditRecord object at 0x61eaa50>, <setroubleshoot.audit_data.AuditRecord object at 0x61eaa90>]
Created attachment 739197 [details] File: backtrace
Created attachment 739198 [details] File: core_backtrace
Created attachment 739199 [details] File: dso_list
Created attachment 739200 [details] File: environ
Could you attach /var/lib/setroubleshoot/setroubleshoot_database.xml
Dave any idea why this is breaking?
Created attachment 741107 [details] setroubleshoot_database.xml Occurred on reporting steam selinux alert
Description of problem: This happens while trying to delete an alert within the alert browser. Version-Release number of selected component: setroubleshoot-server-3.2.8-1.fc19 Additional info: cmdline: /usr/bin/python -Es /usr/bin/sealert -s executable: /usr/bin/sealert kernel: 3.9.0-301.fc19.x86_64 runlevel: N 5 uid: 1000 ureports_counter: 1 Truncated backtrace: catchall_boolean.py:59:get_if_text:TypeError: decoding Unicode is not supported Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/setroubleshoot/browser.py", line 683, in on_delete_button_clicked self.delete_current_alert() File "/usr/lib64/python2.7/site-packages/setroubleshoot/browser.py", line 694, in delete_current_alert self.show_current_alert() File "/usr/lib64/python2.7/site-packages/setroubleshoot/browser.py", line 770, in show_current_alert rb = self.add_row(p, alert, args) File "/usr/lib64/python2.7/site-packages/setroubleshoot/browser.py", line 412, in add_row if_text = _("If ") + alert.substitute(plugin.get_if_text(avc, args)) File "/usr/share/setroubleshoot/plugins/catchall_boolean.py", line 59, in get_if_text txt=unicode(seobject.boolean_desc(args[0]), encoding="utf8") TypeError: decoding Unicode is not supported Local variables in innermost frame: self: <plugins.catchall_boolean.plugin object at 0x68b2650> args: ('mmap_low_allowed', '1', 'initrc_selinux') avc: [<setroubleshoot.audit_data.AuditRecord object at 0x68ae310>]
Created attachment 744568 [details] proposed fix This patch avoids converting unicode to unicode. Why is this happening anyway?
txt=seobject.boolean_desc(args[0]) if not isinstance(txt, unicode): txt=unicode(txt, encoding="utf8") How about this ^^?
(In reply to comment #10) Sure. Looks even nicer. Shall I attach another patch or do you just commit yours? #802113 might need a similar fix.
Fixed in setroubleshoot-plugins-3.0.52-1
(In reply to comment #12) > Fixed in setroubleshoot-plugins-3.0.52-1 works for me in 3.0.52-1. Can you add this update in bodhi ?
setroubleshoot-plugins-3.0.52-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/setroubleshoot-plugins-3.0.52-1.fc19
Package setroubleshoot-plugins-3.0.52-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing setroubleshoot-plugins-3.0.52-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-8473/setroubleshoot-plugins-3.0.52-1.fc19 then log in and leave karma (feedback).
setroubleshoot-plugins-3.0.52-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.