Last modified: 2013-07-30 00:10:57 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 T31134, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29134 - installer breaks when extensions depend on each other
installer breaks when extensions depend on each other
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-25 04:40 UTC by Mark A. Hershberger
Modified: 2013-07-30 00:10 UTC (History)
2 users (show)

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


Attachments

Description Mark A. Hershberger 2011-05-25 04:40:05 UTC
For example, SemanticDrilldown will cause an installer failure if it is selected but SemanticMediawiki hasn't been loaded by the installer yet.

Dependency checks done by the extension, but I think they could be done by the installer better.
Comment 1 Sam Reed (reedy) 2011-05-25 15:43:01 UTC
We'd have to standardise some way of noting depedancies
Comment 2 Brion Vibber 2011-05-25 18:47:50 UTC
Chad, did we ever standardize on some extension metadata for the installer & configuration stuff? If not it's probably time for us to whip that out and see what we can do, at least for the name/author/url/depedency basics.

Be pretty spiffy to have that in for 1.18's installer; even if most config's still going to be separate a helper for enabling extensions is very useful, and I really want to push the idea of shipping some default extensions like ParserFunctions and WikiEditor.
Comment 3 Max Semenik 2011-05-25 18:51:47 UTC
$wgExtensionCredits['other'][] = array(
	'path' => __FILE__,
	'name' => 'Foo',
	'author' => array( 'Foo Barson' ),
	'url' => 'http://mediawiki.org/wiki/Extension:Foo',
	'descriptionmsg' => 'foo-desc',
	'dependencies' => array( 'bar', 'baz', 'lulz' ),
);

?
Comment 4 Brion Vibber 2011-05-25 18:54:00 UTC
PHP code is probably not the best idea; to read it we'd need to execute the file, which starts modifying the program state.

We could play tricks with dividing the file up into parts and executing part of it, but honestly that just skeezes me out. :)

Metadata needs to be readable without executing any code, so we can pull it in for all available extensions with no security risk.
Comment 5 Mark A. Hershberger 2011-05-25 18:58:06 UTC
ini files ftw!

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


Navigation
Links