This project is read-only.



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


mitjap wrote Jun 9, 2016 at 9:52 AM

The problem seems to be with <rss> tag attribute:

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

mitjap wrote Jun 9, 2016 at 12:37 PM

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.