Last modified: 2013-01-23 13:59:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16805, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14805 - Install News Channel extension on Wikinews
Install News Channel extension on Wikinews
Status: RESOLVED WORKSFORME
Product: Wikimedia
Classification: Unclassified
Extension setup (Other open bugs)
unspecified
All All
: Low enhancement with 6 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikinews.org
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-13 14:01 UTC by wikinewsie.anonymous101
Modified: 2013-01-23 13:59 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description wikinewsie.anonymous101 2008-07-13 14:01:58 UTC
Per discussion at http://en.wikinews.org/wiki/Wikinews:Water_cooler#RSS.2FAtom_news_channel_for_Wikinews and http://lists.wikimedia.org/pipermail/wikinews-l/2008-July/001321.html I ask that Extension:News Channel by installed on Wikinews
Comment 1 Bawolff (Brian Wolff) 2008-07-13 15:23:41 UTC
This partially would fix bug 8857 for wikinews 
Comment 2 Bryan Tong Minh 2008-07-13 18:04:35 UTC
It looks like this extension has some problems where one could do some sql injections:

			$category = ucfirst(preg_replace($removeCatPrefixes, '', trim($wgRequest->getVal('cat' . $i))));
			if ($category != null && $category != '') {
				$inCategoriesStr .= "'" . str_replace("'", "\\'", str_replace(' ', '_', $category)) . "',";

What if $wgRequest->getVal('cat', $i) is something containing \' ? The extension should use proper database functions like tableName() and addQuotes() anyway.

I also thing the sysadmins are not gonna like the unoptimized queries this extension uses.
Comment 3 Iaroslav Vassiliev 2008-07-14 03:56:00 UTC
There is new version 1.5, accomodated especially for Wikinews installation. That issue is fixed there among others.
Comment 4 wikinewsie.anonymous101 2008-07-15 06:26:49 UTC
The suggestion for the options is:

var $channelTitle = 'Latest Wikinews Headlines';
var $channelDescription = 'Wikinews, the free news site you can write';
var $channelSiteLink = 'http://en.wikinews.org/wiki/';
var $channelLanguage = 'en';
var $channelCopyright = 'Copyright © Wikinews contributors. Released under the creative commons attribution 2.5 license. See http://creativecommons.org/licenses/by/2.5/ for more information';
var $channelLogoImage = 'http://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Wikinews-logo.png/88px-Wikinews-logo.png'; 
var $channelUpdateInterval = '30'; 
var $channelNewsItems = '15';
var $channelEditorName = 'Wikinews';
var $channelEditorAddress = 'wikinews-l@lists.wikimedia.org'; 
var $channelWebMasterName = 'Wikinews';
var $channelWebMasterAddress = 'wikinews-l@lists.wikimedia.org';
var $newsWikiCategory = 'Published';
var $newsWikiArticlePrefix = ;
var $convertWikiMarkup = true;
var $authorizedEditors = array(); // everyone
Comment 5 Iaroslav Vassiliev 2008-07-15 07:51:14 UTC
In version 1.5 most of these settings are already built-in, only categories are left to be set outside in LocalSettings.php file:

$wgNewsChannelCategory = 'Published';
$wgNewsChannelExcludeCategory = 'Disputed';

Comment 6 Brion Vibber 2008-07-30 23:45:42 UTC
Sent some review notes to author...
Comment 7 Iaroslav Vassiliev 2008-08-05 00:41:23 UTC
Version 1.6 released. As Brion Vibber suggested, all configuration settings are now specified explicitly. So the following options need to be set in LocalSettings.php file:

$wgNewsChannelTitle = 'Latest Wikinews Headlines';
$wgNewsChannelDescription = 'Wikinews, the free news site you can write.';
$wgNewsChannelCopyright = 'Copyright © Wikinews contributors. Released under the
creative commons attribution 2.5 license. See
http://creativecommons.org/licenses/by/2.5/ for more information.';
$wgNewsChannelLogoImage =
'http://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Wikinews-logo.png/88px-Wikinews-logo.png'; 
$wgNewsChannelUpdateInterval = '30'; 
$wgNewsChannelDefaultItems = 10;
$wgNewsChannelMaxItems = 30;
$wgNewsChannelCategory = 'Published';
$wgNewsChannelExcludeCategory = 'Disputed';
Comment 8 Siebrand Mazeland 2008-08-11 14:03:43 UTC
Keywords: -/-shell, +need-review

Also: extension needs to end up in the MediaWiki Subversion repo before it could ever be installed.
Comment 9 Siebrand Mazeland 2008-08-11 14:49:10 UTC
I have made some updates in r39151. Default settings are not fault free.

On Special:NewsChannel:
* Notice:  Undefined variable: msgComment in phase3\extensions\NewsChannel\NewsChannel_body.php on line 384

Requesting the standard feed (nothing set) I get a file download containing the below notices:
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 258
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 259
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 260
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 261
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 262
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 264
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 265
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 266
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 271
* Strict Standards:  Non-static method FeedItem::xmlEncode() should not be called statically, assuming $this from incompatible context in phase3\extensions\NewsChannel\NewsChannel_body.php on line 272

The above should probably be fixed as soon as possible.
Comment 10 Iaroslav Vassiliev 2008-08-12 02:49:04 UTC
Please, remove that line 384 "$wgOut->addWikiText( $msgComment );" from \extensions\NewsChannel\NewsChannel_body.php in SVN. That line must not be there.

I reported the problem with FeedItem::xmlEncode() function in bug 15128, and it was fixed on-the-fly in r39198, so the compiler probably won't yell any more.
Comment 11 Brian McNeil 2009-12-06 16:10:53 UTC
I believe this would be solved with https://bugzilla.wikimedia.org/show_bug.cgi?id=20818
Comment 12 Andre Klapper 2013-01-23 12:32:19 UTC
wikinewsie.anonymous101: Is this still requested?
Comment 13 Bawolff (Brian Wolff) 2013-01-23 13:33:43 UTC
Note google news sitemap provides the requested functionality. I think this can be closed.
Comment 14 Chad H. 2013-01-23 13:59:29 UTC
(In reply to comment #13)
> Note google news sitemap provides the requested functionality. I think this
> can
> be closed.

Resolving WORKSFORME then.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links