Bug 1023187 - Encountered an atom feed entry with an unknown event
Summary: Encountered an atom feed entry with an unknown event
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-24 20:17 UTC by John Sefler
Modified: 2016-07-22 14:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-22 14:39:35 UTC


Attachments (Terms of Use)
atomFeedBug.xml (475.64 KB, text/xml)
2013-10-24 20:18 UTC, John Sefler
no flags Details

Description John Sefler 2013-10-24 20:17:17 UTC
Description of problem:
I have an automated EventsTests that includes an assertion loop that looks at the xml returned from an atom feed.  If one of the entries contains a description with an "Unknown event" substring, then the test throws a failure.  I'm not exactly sure what circustances are causing the event, nevertheless here are some sketchy details...

Encountered an atom feed entry with an unknown event: Event Feed entries[5].getTitle()=RULES MODIFIED   .getDescription()=Unknown event for user admin and target 4.4

curl -k -u admin:admin https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/atom > atomFeedBug.xml

Attached is the atomFeedBug.xml that contains the offending "Unknown event" description.


Version-Release number of selected component (if applicable):
[root@jsefler-f14-candlepin candlepin]# git show-ref | grep master
b74b19b072fcd336b717864e38e577b3e6792863 refs/heads/master

Comment 1 John Sefler 2013-10-24 20:18:19 UTC
Created attachment 815914 [details]
atomFeedBug.xml

Comment 2 Devan Goodwin 2013-10-24 20:21:31 UTC
For whomever picks this up it looks like a missing entry in the map in EventAdapterImpl, used in addMessageText.

Comment 3 Bryan Kearney 2013-10-25 17:24:06 UTC
https://github.com/candlepin/candlepin/pull/416

Comment 4 Bryan Kearney 2013-11-01 12:07:11 UTC
commit cd4921e729a04b60f10296277105f6d045221953
Author: Bryan Kearney <bkearney>
Date:   Fri Oct 25 13:22:18 2013 -0400

    1023187: Events for Rules addition and delete were missing event string.
    
    This resulted in messages in the atom feed such as
    
    <messageText>Unknown event for user admin and target 4.4</messageText>
    
    New strings were addded, and the correct text is shown.

Comment 5 Mike McCune 2016-03-28 22:20:08 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 6 Barnaby Court 2016-07-22 14:39:35 UTC
Moving to closed per the updated candlepin process for bugs that have been merged or have been taken care of.


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