Closed mauritsvanrees closed 1 year ago
@mauritsvanrees i can write an upgrade step for this, i have the code in a custom project and can copy and paste it to plone.app.upgrades
@mauritsvanrees
import of site_rss_items
raise an error if the tuple contains none existing objects ('/news/aggregator',)
zope.schema._bootstrapinterfaces.WrongContainedType: ([ConstraintNotSatisfied('/news/aggregator', '')], 'value')
site_rss_items use the vocabulary SyndicatableFeedItems, the value is an UID of object
@1letter Thanks for fixing!
I have seen this on two sites now that I migrated from earlier Plone (4.3 and 5.2) to Plone 6.0. I am not sure if these sites actually want RSS/atom feeds to work, but I see tracebacks, so either people or bots do visit the urls. Sample traceback:
Or when you visit the syndication control panel:
Problem is the the syndication control panel interface was moved from
Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings
toplone.base.interfaces.syndication.ISiteSyndicationSettings
.So this may be part of issue #3787.
A way to fix it in a site is to create an xml file like this and upload it in the configuration registry on the Import tab:
Then the errors are gone, but the old settings have not been taken over. When you go to the configuration registry control panel and the Export tab, you see both interfaces available for export. They have these differences:
So I guess in this particular site, some settings were changed, probably years ago. I took them over and uploaded this xml:
BTW, I removed the
<value key="site_rss_items">
because this gave an error on import, even though it was exported like that. This seems a separate problem that we can ignore for this issue.