1
Vote

Stackoverflow

description

Loading a feed causes stackoverflow and of course a crash. I have attached the feed xml.

var synsettings = new SyndicationResourceLoadSettings(){ AutoDetectExtensions = true, RetrievalLimit = MaxFetchLimit};
var ms = new System.IO.MemoryStream(UrlData);
ms.Position = 0;
var navigator = SyndicationEncodingUtility.CreateSafeNavigator(ms);
SyndicationResourceMetadata metadata = new SyndicationResourceMetadata(navigator);
RssFeed feed = new RssFeed();
SyndicationResourceAdapter adapter = new SyndicationResourceAdapter(navigator, synsettings);
adapter.Fill(feed, SyndicationContentFormat.Rss); <--------- HERE THE STACKOVERFLOW HAPPENS

file attachments

comments

mitjap wrote Jun 9, 2016 at 8:52 AM

The problem seems to be with <rss> tag attribute:
xmlns:app='http://www.w3.org/2007/app'

It seems that the app attribute must be something known to Argotic library, otherwise it crashes.

mitjap wrote Jun 9, 2016 at 11:37 AM

Problem is in AtomPublishingControlSyndicationExtensionContext being used as entity instead of AtomPublishingControlSyndicationExtension. Because of this condition extension.GetType() != entity.GetType() fails in
public void Fill(IExtensibleSyndicationObject entity, XmlNamespaceManager manager)

Workaround: turn off automatic extension detection and do not use the AtomPublishingControl extension.