Current configuration on the wiki
Find a file
Derick Alangi 3bcd9afa01
logging: Fix LogFormatterTestCase from throwing with CheckUser
`CheckUserPrivateEventLogFormatterTest::testLogDatabaseRows()` calls
`LogFormatterTestCase::doTestLogFormatter()` which overrides UserFactory
with a mock which will eventually call `BlockManager::getBlock()` which
tries to create a legacy user object with `newFromUserIdentity()`, but
the overriden UserFactory mock doesn't mock the method `newFromUserIdentity()`,
so will return a NULL user object.

With the NULL user object returned above and CentralAuth enabled, the
`onGetUserBlock()` hook in CA will fire and try to act on a NULL user object
causing the `CentralAuthUser::getInstanceByName()` method in I2c7b4ceb56463e88
to throw as if we're dealing with a user object having an invalid username.

In order to fix this, this patch also mocks the `newFromUserIdentity()` method
in the mocked UserFactory service that gets overridden in test. As a result,
with this patch, the failing tests in CheckUser extension should begin
passing again.

Bug: T343963
Change-Id: I11937d0d53b3914d7f6bd1483404a04b74ac26c9
2024-02-15 16:59:55 +03:00
.phan ResourceLoader: Remove libs/jsminplus.php (JSMinPlus, JSParser) 2024-01-19 05:07:23 +00:00
cache
docs Merge "Drop deprecated config $wgOpenSearchTemplate" 2024-02-13 17:22:42 +00:00
extensions
images
includes Localisation updates from https://translatewiki.net. 2024-02-15 13:04:01 +01:00
languages Localisation updates from https://translatewiki.net. 2024-02-15 13:04:01 +01:00
maintenance Replace last remaining wfGetDB() calls in core, except ResourceLoader 2024-02-14 11:02:01 -05:00
mw-config Namespace includes/context 2024-02-08 11:07:01 -05:00
resources Merge "Documentation: $.msg (mediawiki.jqueryMsg)" 2024-02-14 23:31:35 +00:00
skins
tests logging: Fix LogFormatterTestCase from throwing with CheckUser 2024-02-15 16:59:55 +03:00
.dockerignore
.editorconfig
.eslintignore .eslintignore: Remove jquery.tipsy reference 2024-01-16 21:11:39 +00:00
.eslintrc.json
.fresnel.yml
.gitattributes
.gitignore Merge "maintenance: Remove dev folder" 2024-01-01 20:24:44 +00:00
.gitmessage
.gitreview
.mailmap Update name & email for bvibber 2024-02-08 17:02:16 -08:00
.phpcs.xml
.stylelintrc.json
.svgo.config.js
.vsls.json
api.php Namespace includes/context 2024-02-08 11:07:01 -05:00
autoload.php Namespace HTMLForm and friends 2024-02-14 08:18:33 -05:00
CODE_OF_CONDUCT.md
composer.json Bump wikimedia/parsoid to 0.19.0-a17 2024-02-12 14:27:26 -05:00
composer.local.json-sample
COPYING
CREDITS Update name & email for bvibber 2024-02-08 17:02:16 -08:00
DEVELOPERS.md DEVELOPERS.md: fix formatting in bullet list 2024-01-19 09:11:25 +01:00
docker-compose.yml
FAQ
Gruntfile.js build: Update karma-firefox-launcher to fix bug on macOS 2024-02-09 13:46:06 +00:00
HISTORY Fix casing of Mediawiki to MediaWiki 2024-01-29 17:15:04 +00:00
img_auth.php Namespace includes/context 2024-02-08 11:07:01 -05:00
index.php Namespace includes/context 2024-02-08 11:07:01 -05:00
INSTALL
jsdoc-plugin-allow-dots-in-modules.js jsdoc: Support dots in '@module <name>' and '@exports <name>' 2024-02-07 20:41:54 +00:00
jsdoc.js Merge "Documentation: $.msg (mediawiki.jqueryMsg)" 2024-02-14 23:31:35 +00:00
load.php Namespace includes/context 2024-02-08 11:07:01 -05:00
opensearch_desc.php Use namespaced classes 2023-12-11 16:07:18 +01:00
package-lock.json Merge "build: Update karma-firefox-launcher to fix bug on macOS" 2024-02-13 20:08:45 +00:00
package.json Merge "build: Update karma-firefox-launcher to fix bug on macOS" 2024-02-13 20:08:45 +00:00
phpunit.xml.dist
README.md docs: Link to "Local development quickstart" in README 2024-01-22 13:58:11 +00:00
RELEASE-NOTES-1.42 Merge "rdbms: Hard-deprecate DBAccessObjectUtils::getDBFromIndex" 2024-02-14 21:19:30 +00:00
rest.php
SECURITY
thumb.php Namespace includes/context 2024-02-08 11:07:01 -05:00
thumb_handler.php
UPGRADE

MediaWiki

MediaWiki is a free and open-source wiki software package written in PHP. It serves as the platform for Wikipedia and the other Wikimedia projects, used by hundreds of millions of people each month. MediaWiki is localised in over 350 languages and its reliability and robust feature set have earned it a large and vibrant community of third-party users and developers.

MediaWiki is:

  • feature-rich and extensible, both on-wiki and with hundreds of extensions;
  • scalable and suitable for both small and large sites;
  • simple to install, working on most hardware/software combinations; and
  • available in your language.

For system requirements, installation, and upgrade details, see the files RELEASE-NOTES, INSTALL, and UPGRADE.

MediaWiki is the result of global collaboration and cooperation. The CREDITS file lists technical contributors to the project. The COPYING file explains MediaWiki's copyright and license (GNU General Public License, version 2 or later). Many thanks to the Wikimedia community for testing and suggestions.