Bug 783652 - [abrt] setroubleshoot-server-3.1.1-1.fc17: signature.py:327:evaluate_filter_for_user:TypeError: not enough arguments for format string
Summary: [abrt] setroubleshoot-server-3.1.1-1.fc17: signature.py:327:evaluate_filter_f...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:eae8ec2c812852032b0a0820d0b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-21 14:36 UTC by Frank Murphy
Modified: 2012-01-24 16:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-24 16:28:49 UTC
Type: ---


Attachments (Terms of Use)

Description Frank Murphy 2012-01-21 14:36:03 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        /usr/bin/python -Es /usr/bin/sealert -s
executable:     /usr/bin/sealert
kernel:         3.2.1-8.fc17.i686
reason:         signature.py:327:evaluate_filter_for_user:TypeError: not enough arguments for format string
time:           Sat 21 Jan 2012 14:16:14 GMT
uid:            1005
username:       frank

backtrace:
:signature.py:327:evaluate_filter_for_user:TypeError: not enough arguments for format string
:
:Traceback (most recent call last):
:  File "/usr/lib/python2.7/site-packages/setroubleshoot/browser.py", line 771, in on_previous_button_clicked
:    self.show_current_alert()
:  File "/usr/lib/python2.7/site-packages/setroubleshoot/browser.py", line 753, in show_current_alert
:    if alert.evaluate_filter_for_user(self.username) == "ignore":
:  File "/usr/lib/python2.7/site-packages/setroubleshoot/signature.py", line 327, in evaluate_filter_for_user
:    syslog.syslog(syslog.LOG_DEBUG, "evaluate_filter_for_user: found %s user's filter = %s" % username, f)
:TypeError: not enough arguments for format string
:
:Local variables in innermost frame:
:action: 'display'
:username: 'frank'
:self: <setroubleshoot.signature.SEFaultSignatureInfo object at 0xbb3e9cc>
:filter_type: None
:f: <setroubleshoot.signature.SEFilter object at 0xbb40eac>

comment:
:When click the <previous button on sealert (gui). There was 10 alerts there.
:That's when abrt caught something. This is the second time, it happended playing with sealert.

smolt_data:
:
:
:General
:=================================
:UUID: 549b0a57-25bf-44a3-ba74-c3563723fdf7
:OS: Fedora release 17 (Rawhide)
:Default run level: Unknown
:Language: en_IE.UTF-8
:Platform: i686
:BogoMIPS: 4804.75
:CPU Vendor: GenuineIntel
:CPU Model: QEMU Virtual CPU version 1.0
:CPU Stepping: 3
:CPU Family: 6
:CPU Model Num: 3
:Number of CPUs: 1
:CPU Speed: 2401
:System Memory: 2006
:System Swap: 3037
:Vendor: Bochs
:System: Bochs 
:Form factor: Other
:Kernel: 3.2.1-8.fc17.i686
:SELinux Enabled: 1
:SELinux Policy: targeted
:SELinux Enforce: Enforcing
:MythTV Remote: Unknown
:MythTV Role: Unknown
:MythTV Theme: Unknown
:MythTV Plugin: 
:MythTV Tuner: -1
:
:
:Devices
:=================================
:(6900:4098:6900:5) pci, virtio-pci, RAM, Virtio memory balloon
:(6966:256:6900:4352) pci, None, VIDEO, N/A
:(6900:4099:6900:3) pci, virtio-pci, SIMPLE, Virtio console
:(6900:4096:6900:1) pci, virtio-pci, ETHERNET, Virtio network device
:(32902:9237:32902:0) pci, snd_intel8x0, MULTIMEDIA_AUDIO, 82801AA AC'97 Audio Controller
:(32902:4663:6900:4352) pci, None, HOST/PCI, Qemu virtual machine
:(6900:4097:6900:2) pci, virtio-pci, SCSI, Virtio block device
:(32902:28704:6900:4352) pci, uhci_hcd, USB, Qemu virtual machine
:(32902:28688:6900:4352) pci, ata_piix, STORAGE, Qemu virtual machine
:(32902:28672:6900:4352) pci, None, PCI/ISA, Qemu virtual machine
:
:
:Filesystem Information
:=================================
:device mtpt type bsize frsize blocks bfree bavail file ffree favail
:-------------------------------------------------------------------
:/dev/mapper/luks-481de494-113f-4350-92d8-f1e5ad1fd2fc / ext4 4096 4096 6814567 5521331 5453126 1712128 1582954 1582954
:/dev/vda1 /boot ext4 4096 4096 523290 424212 397998 131072 130793 130793
:

Comment 1 Miroslav Grepl 2012-01-22 10:13:30 UTC
You can make this change for now in

/usr/lib64/python2.7/site-packages/setroubleshoot/signature.py


--- signature.py_old	2012-01-22 11:11:28.879223678 +0100
+++ signature.py	2012-01-22 11:11:34.477223807 +0100
@@ -324,7 +324,7 @@
     def evaluate_filter_for_user(self, username, filter_type=None):
         action = 'display'
         f = self.find_filter_by_username(username)
-        syslog.syslog(syslog.LOG_DEBUG, "evaluate_filter_for_user: found %s user's filter = %s" % username, f)
+        syslog.syslog(syslog.LOG_DEBUG, "evaluate_filter_for_user: found %s user's filter = %s" % (username, f))
         if f is not None:
             if filter_type is not None:
                 f.filter_type = filter_type

Comment 2 Nicolas Mailhot 2012-01-22 11:17:52 UTC
ok, thanks

Comment 3 Daniel Walsh 2012-01-24 16:28:49 UTC
Fixed in setroubleshoot-3.1.2-1.fc17


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