Current configuration on the wiki
Find a file
Brad Jorsch 96bd79b4a3 Avoid DB rows with usable names but ID = 0 by introducing "interwiki" usernames
Importing revisions in MediaWiki has long been weird: if the username on
the imported revision exists locally it's automatically attributed to
the local user, while if the name does not exist locally we wind up with
revision table rows with rev_user = 0 and rev_user_text being a valid
name that someone might later create. "Global" blocks too create rows
with ipb_by = 0 an ipb_by_text being a valid name.

The upcoming actor table change, as things currently stand, would
regularize that a bit by automatically attributing those imported
revisions to the newly-created user. But that's not necessarily what we
actually want to happen. And it would certainly confuse CentralAuth's
attempt to detect its own global blocks.

Thus, this patch introduces "interwiki" usernames that aren't valid for
local use, of the format "iw>Example".[1] Linker will interpret these
names and generate an appropriate interwiki link in history pages and
the like, as if from wikitext like `[[iw:User:Example]]`.

Imports for non-existant local users (and optionally for existing local
users too) will credit the edit to such an interwiki name. There is also
a new hook, 'ImportHandleUnknownUser', to allow extension such as
CentralAuth to create local users as their edits are imported.

Block will no longer accept usable-but-nonexistent names for 'byText' or
->setBlocker(). CentralAuth's global blocks will be submitted with an
interwiki username (see Ieae5d24f9).

Wikis that have imported edits or CentralAuth global blocks should run
the new maintenance/cleanupUsersWithNoId.php maintenance script. This
isn't done by update.php because (1) it needs an interwiki prefix to use
and (2) the updater can't know whether to pass the `--assign` flag.

[1]: '>' was used instead of the more usual ':' because WMF wikis have
many existing usernames containing colons.

Bug: T9240
Bug: T20209
Bug: T111605
Change-Id: I5401941c06102e8faa813910519d55482dff36cb
Depends-On: Ieae5d24f9098c1977447c50a8d4e2cab58a24d9f
2017-11-30 13:12:44 +11:00
cache
docs Avoid DB rows with usable names but ID = 0 by introducing "interwiki" usernames 2017-11-30 13:12:44 +11:00
extensions
images
includes Avoid DB rows with usable names but ID = 0 by introducing "interwiki" usernames 2017-11-30 13:12:44 +11:00
languages Avoid DB rows with usable names but ID = 0 by introducing "interwiki" usernames 2017-11-30 13:12:44 +11:00
maintenance Avoid DB rows with usable names but ID = 0 by introducing "interwiki" usernames 2017-11-30 13:12:44 +11:00
mw-config
resources s/Latn/latn/ 2017-11-29 21:51:55 +00:00
serialized
skins
tests Avoid DB rows with usable names but ID = 0 by introducing "interwiki" usernames 2017-11-30 13:12:44 +11:00
.eslintrc.json
.gitattributes
.gitignore
.gitreview
.mailmap Family name of Thiemo changed 2017-11-14 13:59:15 +01:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 14.1.0 2017-10-21 03:12:55 +00:00
.stylelintrc.json build: Update stylelint 2017-10-27 13:31:41 +01:00
.travis.yml
api.php SECURITY: API: Avoid some silliness with browser-guessed filenames 2017-11-15 00:58:44 +00:00
autoload.php Avoid DB rows with usable names but ID = 0 by introducing "interwiki" usernames 2017-11-30 13:12:44 +11:00
CODE_OF_CONDUCT.md
composer.json Update OOjs UI to v0.24.3 2017-11-28 16:04:19 -08:00
composer.local.json-sample
COPYING Replace HTTP by HTTPS in docs 2017-10-15 11:11:16 +02:00
CREDITS Family name of Thiemo changed 2017-11-14 13:59:15 +01:00
FAQ
Gruntfile.js build: Update stylelint 2017-10-27 13:31:41 +01:00
HISTORY RELEASE-NOTES to HISTORY for 1.27.4/1.28.3/1.29.2 2017-11-21 21:02:05 +00:00
img_auth.php
index.php
INSTALL Replace HTTP by HTTPS in docs 2017-10-15 11:11:16 +02:00
jsduck.json resources: Remove deprecated 'jquery.autoEllipsis' module 2017-10-31 17:35:21 -07:00
load.php
opensearch_desc.php
package.json build: Add 'npm run qunit' command 2017-11-22 10:48:27 -08:00
profileinfo.php
README
README.mediawiki
RELEASE-NOTES-1.30 Updated phpunit/phpunit from v4.8.35 to v4.8.36 in correct RELEASE-NOTES 2017-11-12 23:54:34 +00:00
RELEASE-NOTES-1.31 Avoid DB rows with usable names but ID = 0 by introducing "interwiki" usernames 2017-11-30 13:12:44 +11:00
SECURITY Add SECURITY 2017-10-03 13:03:35 -07:00
StartProfiler.sample
thumb.php
thumb_handler.php
UPGRADE Replace HTTP by HTTPS in docs 2017-10-15 11:11:16 +02:00

== 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.

* Ready to get started?
** https://www.mediawiki.org/wiki/Special:MyLanguage/Download
* Looking for the technical manual?
** https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Contents
* Seeking help from a person?
** https://www.mediawiki.org/wiki/Special:MyLanguage/Communication
* Looking to file a bug report or a feature request?
** https://bugs.mediawiki.org/
* Interested in helping out?
** https://www.mediawiki.org/wiki/Special:MyLanguage/How_to_contribute

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.