Bug 52642

Summary: does not update an rdf feed when the new feed has no entries
Product: knewsticker Reporter: kosh
Component: generalAssignee: Frerich Raabe <raabe>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description kosh 2003-01-05 20:32:23 UTC
Version:           0.2 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc-3.2 (GCC) 3.2.2 20021231 
OS:          Linux

I have an RDF feed that is generated from a problem database to allow easy tracking and when there are no open issues the feed gives no items which is correct from what I have read but knewsticker will not show that new status when the old one it was using had an entry. This makes it continue to scroll incorrect data.

However if it starts with the blank feed it will keep that until it gets a value but it won't show the blank state again.
Comment 1 Frerich Raabe 2003-09-01 14:18:07 UTC
Subject: kdenetwork/knewsticker/common

CVS commit by raabe: 

- Don't break when a newssource gets updated, but the new RSS file is smaller
  than the previous one; the internal buffer got expanded, but never shrinked,
  so after the reset() call the new data was inserted in the first part of the
  buffer, but because it did not shrink there was still garbled markup from
  the previous version, which breaks the XML parser. Patch based on very nice
  problem analysis by Mary Cushion  (mary at eiger dot demon dot co dot uk).
CCMAIL:49114-done@bugs.kde.org,52642-done@bugs.kde.org,63224-done@bugs.kde.org


  M +12 -7     newsengine.cpp   1.97
  M +2 -2      newsengine.h   1.60
  M +20 -6     xmlnewsaccess.cpp   1.33
  M +2 -3      xmlnewsaccess.h   1.18