Bug 926010

Summary: gnome-abrt abrt fails if invalid problem is selected
Product: [Fedora] Fedora Reporter: mussadek <mussonero>
Component: gnome-abrtAssignee: Jakub Filak <jfilak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jberan, jfilak
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:fdded173ba6ba489326935eda9cb4b51bdb982c8
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 928769 928770 (view as bug list) Environment:
Last Closed: 2013-03-29 11:46:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 928769, 928770    
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ none

Description mussadek 2013-03-23 09:08:00 UTC
Version-Release number of selected component:
gnome-abrt-0.2.9-1.fc19

Additional info:
cmdline:        python /usr/bin/gnome-abrt
executable:     /usr/bin/gnome-abrt
kernel:         3.9.0-0.rc3.git0.4.fc19.x86_64
uid:            1000
ureports_counter: 1

Truncated backtrace:
dbus_problems.py:131:get_items:InvalidProblem: '/var/tmp/abrt/oops-2013-03-23-04:34:13-780-1' is not a valid problem directory

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/views.py", line 387, in on_gac_report_activate
    if selected and not selected['not-reportable']:
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/problems.py", line 123, in __getitem__
    loaded = self.__loaditems__(item)
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/problems.py", line 104, in __loaditems__
    items = self.source.get_items(self.problem_id, *args)
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/dbus_problems.py", line 131, in get_items
    raise errors.InvalidProblem(e.message)
InvalidProblem: '/var/tmp/abrt/oops-2013-03-23-04:34:13-780-1' is not a valid problem directory

Local variables in innermost frame:
info: {}
self: <gnome_abrt.dbus_problems.DBusProblemSource object at 0x1d2b490>
args: ('not-reportable',)
e: DBusException("'/var/tmp/abrt/oops-2013-03-23-04:34:13-780-1' is not a valid problem directory",)
problem_id: '/var/tmp/abrt/oops-2013-03-23-04:34:13-780-1'

Comment 1 mussadek 2013-03-23 09:08:04 UTC
Created attachment 714994 [details]
File: backtrace

Comment 2 mussadek 2013-03-23 09:08:07 UTC
Created attachment 714995 [details]
File: core_backtrace

Comment 3 mussadek 2013-03-23 09:08:10 UTC
Created attachment 714996 [details]
File: environ

Comment 4 Jakub Filak 2013-03-25 17:59:12 UTC
Fixed in upstream:

commit 8f82638053a86defcdbd4dad4acac3fbd40e4ba1
Author: Jakub Filak <jfilak>
Date:   Mon Mar 25 16:26:41 2013 +0100

    Catch more exceptions and handle them correctly
    
    - closes rhbz#926010
    
    Signed-off-by: Jakub Filak <jfilak>
    Signed-off-by: Michal Toman <mtoman>