Page MenuHomePhabricator

ConfigRegistry missing in extension.json
Closed, ResolvedPublicBUG REPORT


Installed software:

Server: Ubuntu 18.04
Mediawiki: 1.31.2
PHP: 7.2
sabre/dav: 3.2.0

After installing the extension like described on github ( and calling "https://<wiki-domain>/<scriptPath>/webdav.php" in browser.
The catch block in webdav.php throws an error.

ConfigException: No registered builder available for wg.

This happens because the config vars in extension.json are not registerd properly. The following lines need to be added to the extension.json (note the change from 'wg' to 'webdav'). (See:

	"ConfigRegistry": {
		"webdav": "GlobalVarConfig::newInstance"

As an effect of renaming 'wg' to 'webdav' all occurances need to be refactored:

$config = \MediaWiki\MediaWikiServices::getInstance()
			->getConfigFactory()->makeConfig( 'wg' );


$config = \MediaWiki\MediaWikiServices::getInstance()
			->getConfigFactory()->makeConfig( 'webdav' );

The following files need to be refactored:

  • includes/Locks/Backend/WebDAVMediaWikiDBLockBackend.php
  • includes/WebDAVNamespacesCollection.php
  • includes/WebDAVPagesCollection.php
  • includes/WebDAVFilesCollection.php
  • includes/WebDAVFileFile.php
  • webdav.php


Related Gerrit Patches:
mediawiki/extensions/WebDAV : masterAdd extension config + remove global consts

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 9 2019, 11:53 AM
Osnard reassigned this task from Osnard to ItSpiderman.Jul 9 2019, 12:11 PM
Osnard triaged this task as High priority.
Osnard added a subscriber: Osnard.

Change 521818 had a related patch set uploaded (by ItSpiderman; owner: ItSpiderman):
[mediawiki/extensions/WebDAV@master] Add extension config

@Sebastian.Schmid91: Thank you for opening this ticket.
The issue is resolved in the patch above

Change 521818 merged by jenkins-bot:
[mediawiki/extensions/WebDAV@master] Add extension config + remove global consts

@ItSpiderman: Is there more left to do here? If not, feel free to set the status of this task to resolved. Thanks!

Aklapper closed this task as Resolved.Jul 20 2019, 12:28 PM

@ItSpiderman: No reply, hence setting task status to "resolved". Please reopen if there is more to do in this task.