Page MenuHomePhabricator

Extension RSS fails to connect to feeds
Closed, ResolvedPublic

Description

The extension is enabled (wmgUseRSSExtension, wmgRSSUrlWhitelist) for the following wikis and feeds in wikimedia farm:
(code

<rss max="6">feed url</rss>

is used for examples)

Well the case of the last URL is clear ­— bugzilla got moved to phab. As to the rest I can open them all in my browser and they indeed are feeds. Some now have https instead of http so I blamed it at first, but though it might be worth fixing it proved to be not the case as some are already written in https form and some of them are working and some are not. The most interesting is wmfblog — it works on WMF-wiki but does not work on MW-wiki though the URL is the same.

Event Timeline

Base raised the priority of this task from to Needs Triage.
Base updated the task description. (Show Details)
Base added a project: MediaWiki-extensions-RSS.
Base subscribed.
Base set Security to None.
Aklapper triaged this task as Medium priority.Feb 24 2015, 8:58 AM

I found the problem - this is in our config:

if ( $wmgUseRSSExtension ) {
	include( "$IP/extensions/RSS/RSS.php" );
	// Only enable the proxy on foundationwiki since the blog
	// is now on an external host
	if ( $wgDBname === 'foundationwiki' ) {
		$wgRSSProxy = $wgCopyUploadProxy;
	}
	$wgRSSUrlWhitelist = $wmgRSSUrlWhitelist;
}

And so it only works on foundationwiki.

b9084a00 (Kunal Mehta 2014-09-23 18:51:01 -0700  992)   // Only enable the proxy on foundationwiki since the blog
b9084a00 (Kunal Mehta 2014-09-23 18:51:01 -0700  993)   // is now on an external host
b9084a00 (Kunal Mehta 2014-09-23 18:51:01 -0700  994)   if ( $wgDBname === 'foundationwiki' ) {
b9084a00 (Kunal Mehta 2014-09-23 18:51:01 -0700  995)           $wgRSSProxy = $wgCopyUploadProxy;
b9084a00 (Kunal Mehta 2014-09-23 18:51:01 -0700  996)   }

Change 225717 had a related patch set uploaded (by Alex Monk):
Revert "Only use the RSS proxy on foundationwiki"

https://gerrit.wikimedia.org/r/225717

Change 225717 merged by jenkins-bot:
Revert "Only use the RSS proxy on foundationwiki"

https://gerrit.wikimedia.org/r/225717

Krenair claimed this task.

Should be better now. Please open separate tasks for specific URLs which fail due to redirects.

I'll note them here anyway. The ones broken due to redirects are WMUA's blog feed, which https://gerrit.wikimedia.org/r/#/c/222691/ will fix, and Mingle and BZ (both of which are not used anymore AFAIK).