Bug 728130

Summary: abrt reports to BZ and then claims the bug is already reported
Product: Red Hat Enterprise Linux 6 Reporter: Michal Nowak <mnowak>
Component: abrtAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: ahecox, dfediuck, dvlasenk, gavin, kklic, mnowak, npajkovs, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-04 12:21:37 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:

Description Michal Nowak 2011-08-04 07:13:58 UTC
Description of problem:

Had a crash from root process, opened abrt-gui via sudo in user's session and reported the problem, however bugzilla reporter seems to misbehave since it first reports the crash and then claims the bug exists already.

--- Running report_Bugzilla ---
Logging into Bugzilla at https://bugzilla.redhat.com
Checking for duplicates
Creating a new bug
New bug id: 728127
Adding attachments to bug 728127
Logging out
Status: NEW https://bugzilla.redhat.com/show_bug.cgi?id=728127
Logging into Bugzilla at https://bugzilla.redhat.com
Checking for duplicates
Bug is already reported: 728127
Adding new comment to bug 728127
Logging out
Status: NEW https://bugzilla.redhat.com/show_bug.cgi?id=728127

Not sure this has any relation to abrt-gui being run as a root or perhaps it's because abrt is attaching files or adding comment to an existing bug via a new connection...

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

abrt-2.0.4-2.el6.x86_64
libreport-2.0.5-3.el6.x86_64

Comment 2 Jiri Moskovcak 2011-08-04 11:23:04 UTC
Seems like bugzilla reporter was run twice. Was this with the default configuration or was it modified.

Comment 3 Michal Nowak 2011-08-04 11:56:19 UTC
All non-XML lines from /etc/libreport:

libreport/plugins/Bugzilla.conf:# Description: Reports bugs to bugzilla
libreport/plugins/Bugzilla.conf:# Bugzilla URL
libreport/plugins/Bugzilla.conf:BugzillaURL = https://bugzilla.redhat.com/
libreport/events.d/sealert_bz.conf:EVENT=report_Bugzilla      reporter-bugzilla
libreport/events.d/ccpp_event.conf:#EVENT=report_Bugzilla analyzer=CCpp
libreport/events.d/ccpp_event.conf:#        reporter-bugzilla -c /etc/libreport/plugins/Bugzilla.conf
libreport/events.d/python_event.conf:EVENT=report_Bugzilla analyzer=Python
libreport/events.d/python_event.conf:        reporter-bugzilla -c /etc/libreport/plugins/Bugzilla.conf
libreport/events.d/bugzilla_event.conf:EVENT=report_Bugzilla analyzer=libreport reporter-bugzilla
libreport/events/report_Bugzilla.conf:Bugzilla_BugzillaURL = https://bugzilla.redhat.com
libreport/events/report_Bugzilla.conf:Bugzilla_Login =
libreport/events/report_Bugzilla.conf:Bugzilla_Password =
libreport/events/report_Bugzilla.conf:Bugzilla_SSLVerify = yes


Modified files from abrt & libreport packages:

.......T.  c /etc/abrt/abrt.conf
.M...UG..    /var/run/abrt
S.5....T.  c /etc/libreport/events.d/python_event.conf

Comment 4 Jiri Moskovcak 2011-08-04 12:06:40 UTC
please remove: libreport/events.d/sealert_bz.conf  If you have event with the same name configured multiple times abrt will also run it multiple times.

Comment 5 Michal Nowak 2011-08-04 12:21:37 UTC
Thanks.

Comment 6 Denys Vlasenko 2011-08-04 14:20:10 UTC
This actually works as expected.

This configuration describes _one_ event:

EVENT=foo [cond1]
    cmd1

EVENT=foo [cond2]
    cmd2

Depending on cond1/2, cmd1 and/or cmd2 will run.