lhc/web/wiklou.git
7 years agoMerge "Avoid 'message' in log context in AuthManager"
jenkins-bot [Tue, 4 Oct 2016 14:58:28 +0000 (14:58 +0000)]
Merge "Avoid 'message' in log context in AuthManager"

7 years agoMerge "wgRateLimits: Add configuration option to ignore 'noratelimit' right"
jenkins-bot [Tue, 4 Oct 2016 14:41:59 +0000 (14:41 +0000)]
Merge "wgRateLimits: Add configuration option to ignore 'noratelimit' right"

7 years agoAdd missing array_keys() call to scaleLoads()
Aaron Schulz [Tue, 4 Oct 2016 11:16:21 +0000 (04:16 -0700)]
Add missing array_keys() call to scaleLoads()

Bug: T147240
Change-Id: I110f43b5990fe42b2d7f1ec960a55a1ae4aa4253

7 years agoImprove Database::factory() $driver validation
Aaron Schulz [Tue, 4 Oct 2016 05:35:51 +0000 (22:35 -0700)]
Improve Database::factory() $driver validation

Change-Id: Ie034e6f2f94f0f1731dbe2468f075297d5a171a2

7 years agoDocument that RequestContext::setTitle's $title can be null
Marius Hoch [Tue, 4 Oct 2016 07:01:54 +0000 (09:01 +0200)]
Document that RequestContext::setTitle's $title can be null

Change-Id: Ibd004fd79c374533128574fb1bf5d3edbd82a17d

7 years agoMerge "Move most of MWCryptRand into libs"
jenkins-bot [Tue, 4 Oct 2016 05:57:32 +0000 (05:57 +0000)]
Merge "Move most of MWCryptRand into libs"

7 years agoMove most of MWCryptRand into libs
Kunal Mehta [Sun, 2 Oct 2016 07:04:17 +0000 (00:04 -0700)]
Move most of MWCryptRand into libs

Dependency-inject the MW-specific parts of MWCryptRand via
MediaWikiServices into a generic CryptRand class that is in libs/.

Note that this removes the wfGetAllCallers() debug logging from
generate().

Change-Id: I9742735c266ee69fb247199d3c553cd2ad2a3987

7 years agowgRateLimits: Add configuration option to ignore 'noratelimit' right
Bryan Davis [Tue, 4 Oct 2016 04:46:30 +0000 (22:46 -0600)]
wgRateLimits: Add configuration option to ignore 'noratelimit' right

It may be reasonable to ignore the 'noratelimit' right granted to a user
when perfuming some rate limit checks. As an example, a rate limit check
on failed authentication attempts should not be bypassed.

Add an optional '&can-bypass' configuration option for each
$wgRateLimits action that can be set to false to disable checking
User::isPingLimitable(). This bypasses both 'noratelimit' and
$wgRateLimitsExcludedIPs exclusions.

Depends-On: Iacdd1719d5f08eca91de0a35c0042ffee2136f34
Change-Id: Ia3add8bbbab0307f036e9b77e752c382da3a0d04

7 years agoMerge "Move MWCryptHash into libs/"
jenkins-bot [Tue, 4 Oct 2016 04:33:06 +0000 (04:33 +0000)]
Merge "Move MWCryptHash into libs/"

7 years agoMerge "Set default load monitor class in LBFactoryMulti"
jenkins-bot [Tue, 4 Oct 2016 03:06:19 +0000 (03:06 +0000)]
Merge "Set default load monitor class in LBFactoryMulti"

7 years agoSet default load monitor class in LBFactoryMulti
Aaron Schulz [Tue, 4 Oct 2016 02:57:45 +0000 (19:57 -0700)]
Set default load monitor class in LBFactoryMulti

Bug: T147240
Change-Id: I6d1c86e714d537f43b01bbf9581032aec2a4e59b

7 years agoMerge "http: Use Psr\Log instead of wfDebug*"
jenkins-bot [Tue, 4 Oct 2016 02:55:41 +0000 (02:55 +0000)]
Merge "http: Use Psr\Log instead of wfDebug*"

7 years agoMerge "Split HttpFunctions.php into separate files"
jenkins-bot [Tue, 4 Oct 2016 02:54:50 +0000 (02:54 +0000)]
Merge "Split HttpFunctions.php into separate files"

7 years agoMerge "Remove pre-5.5 compat from MultiHttpClient"
jenkins-bot [Tue, 4 Oct 2016 02:49:29 +0000 (02:49 +0000)]
Merge "Remove pre-5.5 compat from MultiHttpClient"

7 years agoMerge "Restore Content-Language header change from e53ff931a"
jenkins-bot [Tue, 4 Oct 2016 02:24:30 +0000 (02:24 +0000)]
Merge "Restore Content-Language header change from e53ff931a"

7 years agoMerge "Revert "Localisation updates from https://translatewiki.net.""
jenkins-bot [Tue, 4 Oct 2016 02:01:21 +0000 (02:01 +0000)]
Merge "Revert "Localisation updates from https://translatewiki.net.""

7 years agoRevert "Localisation updates from https://translatewiki.net."
Bartosz Dziewoński [Tue, 4 Oct 2016 01:54:09 +0000 (01:54 +0000)]
Revert "Localisation updates from https://translatewiki.net."

Broke the tests.

This reverts commit 17ef4586787be33bf00980c42516bed6643656b3.

Bug: T147245
Change-Id: Ic5db3a4243c9543e12852faecf4f2425b16bab39

7 years agoAvoid 'message' in log context in AuthManager
Gergő Tisza [Sat, 1 Oct 2016 01:10:56 +0000 (01:10 +0000)]
Avoid 'message' in log context in AuthManager

Logstash merges the log context into the main metadata (where
'message' is the log message) and ends up overwriting the message.

Bug: T145133
Change-Id: I27f221b0f1f7203e93d1b92119dc584ba8526f5b

7 years agoImplement scaleLoads() in LoadMonitorMySQL
Aaron Schulz [Thu, 15 Sep 2016 07:04:41 +0000 (00:04 -0700)]
Implement scaleLoads() in LoadMonitorMySQL

* Recently pooled servers will get more traffic as
  their internal caches warm up by getting queries
* Also let LoadMonitor support options for flexibility
  The "loadMonitor" config field now takes in array in
  LoadBalancer.
* Make LoadMonitor the default instead of LoadMonitorNull.

Change-Id: I53b89b0c25bdcc30deec3f8b502fb14479c53ae8

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 3 Oct 2016 19:54:31 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib172a5e6cb38c20cf4149e1735272c27192bc8b6

7 years agoUpdate OOjs UI to v0.17.10
James D. Forrester [Mon, 3 Oct 2016 19:01:38 +0000 (12:01 -0700)]
Update OOjs UI to v0.17.10

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.10

Change-Id: I4faf83e301417ef5721a81a4a69890854e6c266b

7 years agoMerge "action=history should return 404 if there is no such page"
jenkins-bot [Mon, 3 Oct 2016 18:19:17 +0000 (18:19 +0000)]
Merge "action=history should return 404 if there is no such page"

7 years agoMerge "Fix Database IDEA warnings about callable parameters"
jenkins-bot [Mon, 3 Oct 2016 18:15:59 +0000 (18:15 +0000)]
Merge "Fix Database IDEA warnings about callable parameters"

7 years agoMerge "mw.feedback: Use standard OOjs UI dialog error handling"
jenkins-bot [Mon, 3 Oct 2016 18:10:26 +0000 (18:10 +0000)]
Merge "mw.feedback: Use standard OOjs UI dialog error handling"

7 years agoRestore Content-Language header change from e53ff931a
Aaron Schulz [Fri, 30 Sep 2016 22:48:14 +0000 (15:48 -0700)]
Restore Content-Language header change from e53ff931a

This was lost in a rebase at some point.

Change-Id: I46f376a82205a5c99b98c9e971f9e9d7868ce9fb

7 years agoFix Database IDEA warnings about callable parameters
Aaron Schulz [Mon, 3 Oct 2016 17:48:58 +0000 (10:48 -0700)]
Fix Database IDEA warnings about callable parameters

Change-Id: Ia9ccc86bb9cbd78b5890ceaedce8cca8d6bb7fe4

7 years agoMerge "Remove cruft from interwiki.list and interwiki.sql"
jenkins-bot [Mon, 3 Oct 2016 11:06:48 +0000 (11:06 +0000)]
Merge "Remove cruft from interwiki.list and interwiki.sql"

7 years agoMerge "Enable deprecation warnings for WikiPage::getText()"
jenkins-bot [Mon, 3 Oct 2016 01:45:47 +0000 (01:45 +0000)]
Merge "Enable deprecation warnings for WikiPage::getText()"

7 years agoMerge "Update wikimedia/php-session-serializer to v1.0.4"
jenkins-bot [Mon, 3 Oct 2016 01:34:03 +0000 (01:34 +0000)]
Merge "Update wikimedia/php-session-serializer to v1.0.4"

7 years agoMerge "Add primary key to change_tag and tag_summary tables"
jenkins-bot [Mon, 3 Oct 2016 01:08:44 +0000 (01:08 +0000)]
Merge "Add primary key to change_tag and tag_summary tables"

7 years agoRemove cruft from interwiki.list and interwiki.sql
tjlsangria [Sat, 1 Oct 2016 23:50:33 +0000 (19:50 -0400)]
Remove cruft from interwiki.list and interwiki.sql

Specifically, remove docbook, gej, jargonfile, lugkr, ppr, sourcewatch,
tejo, uea, and webseitzwiki, all of which are not in the interwiki map,
per https://phabricator.wikimedia.org/T146852#2682115 . Also remove
mediazilla.

Bug: T146852
Change-Id: I04c1e10f989eccc60a0c968617f795fd0e6c6309

7 years agoMerge "Add "from" to MediaWiki:Search-redirect"
jenkins-bot [Sun, 2 Oct 2016 22:01:46 +0000 (22:01 +0000)]
Merge "Add "from" to MediaWiki:Search-redirect"

7 years agoSpecial:NewPages - add <span> for "originally created as..."
Sidhant Gupta [Sun, 2 Oct 2016 15:23:34 +0000 (20:53 +0530)]
Special:NewPages - add <span> for "originally created as..."

Add span tag around the old title line in the Special New Page.

Bug: T146145
Change-Id: I7578e94284710250eab9f23dbef2777b58031faa

7 years agoAdd "from" to MediaWiki:Search-redirect
Huji Lee [Sun, 2 Oct 2016 16:51:40 +0000 (12:51 -0400)]
Add "from" to MediaWiki:Search-redirect

Bug: T129941
Change-Id: If8871fe85b1c1c8202895c964d47ef250a1ed110

7 years agoUpdate wikimedia/php-session-serializer to v1.0.4
Reedy [Sun, 2 Oct 2016 11:31:38 +0000 (12:31 +0100)]
Update wikimedia/php-session-serializer to v1.0.4

github.com/wikimedia/php-session-serializer/compare/v1.0.3...v1.0.4

Change-Id: Ia0045329f4680a6f7c6acc9d886ae54ccf49c83d
Depends-On: I18ec214b6446f559e018673797efcab70523de39

7 years agoMerge "Add a class to the <a> element of the interlanguage link"
jenkins-bot [Sun, 2 Oct 2016 08:41:40 +0000 (08:41 +0000)]
Merge "Add a class to the <a> element of the interlanguage link"

7 years agoMove MWCryptHash into libs/
Kunal Mehta [Sun, 2 Oct 2016 06:19:28 +0000 (23:19 -0700)]
Move MWCryptHash into libs/

Remove the single wfDebug() call that was making this class MW specific,
someone can log the return value of MWCryptHash::hashAlgo() if they'd
like to know the specific implementation being used.

Change-Id: Ibb7ead7594edab7861631046dd8316daab613401

7 years agohttp: Use Psr\Log instead of wfDebug*
Kunal Mehta [Sun, 2 Oct 2016 05:58:55 +0000 (22:58 -0700)]
http: Use Psr\Log instead of wfDebug*

MWHttpRequest::factory() will pass in a logger to move the dependency up
to the factory instead of individual functions.

Change-Id: I4e428f060c90ef49cb3acb3e3dceab64bd952330

7 years agoSplit HttpFunctions.php into separate files
Kunal Mehta [Sun, 2 Oct 2016 05:46:07 +0000 (22:46 -0700)]
Split HttpFunctions.php into separate files

Change-Id: I30d5f77de08e42ec43baf5722f40d9205c4bde67

7 years agoRemove pre-5.5 compat from MultiHttpClient
Kunal Mehta [Sun, 2 Oct 2016 05:25:06 +0000 (22:25 -0700)]
Remove pre-5.5 compat from MultiHttpClient

Change-Id: I5f9f1a94c0207a14c0d5cc77292aa04af4ac6470

7 years agoMerge "Detect/use APCu properly"
jenkins-bot [Sun, 2 Oct 2016 03:31:43 +0000 (03:31 +0000)]
Merge "Detect/use APCu properly"

7 years agoMerge "Update composer/semver to 1.4.2"
jenkins-bot [Sun, 2 Oct 2016 03:21:47 +0000 (03:21 +0000)]
Merge "Update composer/semver to 1.4.2"

7 years agoAdd primary key to change_tag and tag_summary tables
This, that and the other [Sat, 13 Aug 2016 01:06:33 +0000 (11:06 +1000)]
Add primary key to change_tag and tag_summary tables

Based heavily on 43e386ca16411096bbbd7f14f9f4e15c5e268fe7.

Bug: T123225
Change-Id: I33480f4016812259700979f1145099744bb451d4

7 years agoMWException: restore prior render() logic
Bryan Davis [Sun, 2 Oct 2016 00:02:12 +0000 (18:02 -0600)]
MWException: restore prior render() logic

Partially revert 00bee02 by restoring the prior MWException::report()
logic. MWExceptionRenderer does not handle all of the MWException
subclasses that somehow modify the default render() behavior. Notable
among these is Flow\Exception\FlowException and its subclasses which
modify the `$wgOut` global to divert HTML output to alternate locations.

Bug: T147122
Change-Id: Ibe3cadca229ce21ed0a3a2482433e3a22b5f5646

7 years agoMerge "Exception rendering fixes"
jenkins-bot [Sun, 2 Oct 2016 00:24:36 +0000 (00:24 +0000)]
Merge "Exception rendering fixes"

7 years agoDetect/use APCu properly
Reedy [Sat, 1 Oct 2016 17:00:53 +0000 (18:00 +0100)]
Detect/use APCu properly

In PHP 5.5 and above, userland APC caching moved to an extension

Bug: T140587
Change-Id: Ie0871776cd7e67838471a4fe95451cf4164079b7

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 1 Oct 2016 19:54:16 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0afe820944452c3089c953449ae3415333783f45

7 years agoUpdate composer/semver to 1.4.2
Reedy [Sat, 1 Oct 2016 13:09:39 +0000 (14:09 +0100)]
Update composer/semver to 1.4.2

https://github.com/composer/semver/compare/1.4.1...1.4.2

Change-Id: I0a83a8568c9a74adbf3a26373ecb90578396c564
Depends-On: I46158f128edb14a5b45f3a8918acb1a7e15935e4

7 years agoUse wikimedia/wait-condition-loop
Kunal Mehta [Sat, 1 Oct 2016 07:07:19 +0000 (00:07 -0700)]
Use wikimedia/wait-condition-loop

Since the WaitConditionLoop class was first introduced in 1.28 (current
master), no back-compat alias is added.

Bug: T146256
Depends-On: Ia84774d83da79fea1e167fe065c69549981f753b
Change-Id: Ibd4f15c87105b8caccbd1f661b74b6efa012b77f

7 years agoMerge "Fix SectionProfileCallback type error"
jenkins-bot [Sat, 1 Oct 2016 01:36:31 +0000 (01:36 +0000)]
Merge "Fix SectionProfileCallback type error"

7 years agoException rendering fixes
Aaron Schulz [Fri, 30 Sep 2016 23:57:38 +0000 (16:57 -0700)]
Exception rendering fixes

* Actually use MWExceptionRenderer::AS_RAW. Use this after
  an error is thrown while trying to pretty render the original
  error. This is how this case was originally handled before.
* Do not show the google form or file cache in CLI mode.

Change-Id: I130499753efbf8b4d6d254ea36bacb2473952c1b

7 years agoLegacyLogger: Be consistent about converting log levels to int
Bryan Davis [Fri, 30 Sep 2016 23:54:45 +0000 (17:54 -0600)]
LegacyLogger: Be consistent about converting log levels to int

Normalize $level arguments to integers early to avoid confusion later
about what type the argument is.

Change-Id: I7305c0514f4383ec552afea2deb0e3fc6ba3fe8a

7 years agoFix wfLogDBError channel redirect logic
Aaron Schulz [Fri, 30 Sep 2016 23:37:00 +0000 (16:37 -0700)]
Fix wfLogDBError channel redirect logic

Change-Id: I1249f9a097625c2fab6601059177594e5f3a21fc

7 years agoFix SectionProfileCallback type error
Aaron Schulz [Fri, 30 Sep 2016 22:57:33 +0000 (15:57 -0700)]
Fix SectionProfileCallback type error

Avoids "Argument 1 passed to Profiler::scopedProfileOut() must
be an instance of ScopedCallback, SectionProfileCallback given"

Change-Id: I92713de71df9722d8a5d7e5cd04460aff71cf096

7 years agoMerge "database: Rename LBFactoryMW to MWLBFactory"
jenkins-bot [Fri, 30 Sep 2016 22:48:07 +0000 (22:48 +0000)]
Merge "database: Rename LBFactoryMW to MWLBFactory"

7 years agoMWExceptionHandler: Restore delegation to MWException::report
Bryan Davis [Fri, 30 Sep 2016 21:50:40 +0000 (15:50 -0600)]
MWExceptionHandler: Restore delegation to MWException::report

Follow up to 00bee0297. Many MWException subclasses override
MWException::report to do things like special logging and setting the
HTTP response status code. We need to keep calling those methods until
MWExceptionRenderer knows how to handle all of them.

Bug: T147098
Change-Id: I2c90e2d9e9b019357458c7e14a3d602b591c6f5b

7 years agodatabase: Rename LBFactoryMW to MWLBFactory
Timo Tijhof [Fri, 30 Sep 2016 21:06:02 +0000 (22:06 +0100)]
database: Rename LBFactoryMW to MWLBFactory

It's no longer an LBFactory subclass (since 5d4b009cf), and the MW-prefix
seems more natural for this class.

The class has only existed since for about 2 weeks (since 0e5cd18b7) and
is not used outside MediaWiki core across Wikimedia Git.

Change-Id: I34be982b5d10ad03e062033da9c40b4a01665289

7 years agoReplace deprecated `constructive` with `progressive`
Volker E [Fri, 30 Sep 2016 20:18:52 +0000 (13:18 -0700)]
Replace deprecated `constructive` with `progressive`

Replacing deprecated `constructive` mediawiki.UI CSS class and OOjs UI
flag  with `progressive`.

Bug: T146923
Change-Id: I524b9722ee49692c55bb1f97d34d8a28068716ee

7 years agomw.feedback: Use standard OOjs UI dialog error handling
Bartosz Dziewoński [Fri, 30 Sep 2016 19:38:26 +0000 (21:38 +0200)]
mw.feedback: Use standard OOjs UI dialog error handling

Previously, we'd close the original dialog on failure and display a
new one, which had the unfortunate effect of losing the user's input
(which presumably was not saved due to the failure).

Bug: T147056
Change-Id: I8893658807f6a584d6db0a84bc508d87ef508c7e

7 years agoMerge "Bidi-isolate revisions count in Special:Import"
jenkins-bot [Fri, 30 Sep 2016 18:34:35 +0000 (18:34 +0000)]
Merge "Bidi-isolate revisions count in Special:Import"

7 years agoMerge "Use MAX_LOCK_TTL in RedisLockManager to avoid premature lock expiration"
jenkins-bot [Fri, 30 Sep 2016 15:52:25 +0000 (15:52 +0000)]
Merge "Use MAX_LOCK_TTL in RedisLockManager to avoid premature lock expiration"

7 years agoMerge "Cleanup MemcLockManager and move it to /libs"
jenkins-bot [Fri, 30 Sep 2016 15:49:20 +0000 (15:49 +0000)]
Merge "Cleanup MemcLockManager and move it to /libs"

7 years agoPass interwiki option to SearchEngine
dcausse [Fri, 30 Sep 2016 14:41:00 +0000 (16:41 +0200)]
Pass interwiki option to SearchEngine

Currently interwiki result are always computed even if the client does
not request them.
Pass the option via featureData to allow SearchEngine not to run
interwiki searches when not needed.

Bug: T147003
Change-Id: I55067bc7e5d926a3e37f4d24fb8e085bd252c376

7 years agoMerge "Move ChronologyProtector up a directory instead of being by itself"
jenkins-bot [Fri, 30 Sep 2016 13:53:26 +0000 (13:53 +0000)]
Merge "Move ChronologyProtector up a directory instead of being by itself"

7 years agoUse MAX_LOCK_TTL in RedisLockManager to avoid premature lock expiration
Aaron Schulz [Fri, 30 Sep 2016 13:36:35 +0000 (06:36 -0700)]
Use MAX_LOCK_TTL in RedisLockManager to avoid premature lock expiration

App servers should not lower the redis structure TTL of locks set
from CLI scripts, which is what would typically happen before if
they touched the same keys. Instead, keep a high lock record TTL
and rely on the logical TTLs for expiry semantics.

Change-Id: I2948369845c47d2682a85dd0564673f3b813be83

7 years agoCleanup MemcLockManager and move it to /libs
Aaron Schulz [Fri, 30 Sep 2016 12:47:26 +0000 (05:47 -0700)]
Cleanup MemcLockManager and move it to /libs

* Remove wf* function and ObjectCache dependencies.
* Use the base class session field.
* Lower physical lock structure TTL and move it to the base
  class as a constant.
* Resolve TODO about acquiring mixed lock types in one pass.
* Only mark servers down for 30 seconds in case of long-running
  scripts.

Change-Id: Icd4be407e599524cc620975d27e85666d2532b95

7 years agoBidi-isolate revisions count in Special:Import
Amir E. Aharoni [Sat, 23 Apr 2016 06:32:12 +0000 (06:32 +0000)]
Bidi-isolate revisions count in Special:Import

Change-Id: I3aacc10dd76aba9f4315db284a4bafe629219bc1

7 years agoMerge "Remove test for <math> which fails when Extension:Math is installed"
jenkins-bot [Fri, 30 Sep 2016 02:26:28 +0000 (02:26 +0000)]
Merge "Remove test for <math> which fails when Extension:Math is installed"

7 years agoMerge "Don't skip tests which lack non-tidy output"
jenkins-bot [Fri, 30 Sep 2016 00:11:34 +0000 (00:11 +0000)]
Merge "Don't skip tests which lack non-tidy output"

7 years agoMerge "JpegMetadataExtractor: Allow empty segments"
jenkins-bot [Thu, 29 Sep 2016 23:44:07 +0000 (23:44 +0000)]
Merge "JpegMetadataExtractor: Allow empty segments"

7 years agoMove ChronologyProtector up a directory instead of being by itself
Aaron Schulz [Thu, 29 Sep 2016 23:42:58 +0000 (16:42 -0700)]
Move ChronologyProtector up a directory instead of being by itself

Change-Id: Ie4859a24fb22e5816718a7d1d9444316b1f444c4

7 years agoMovePage: Check ContentHandler::canBeUsedOn()
Kunal Mehta [Thu, 29 Sep 2016 23:09:43 +0000 (16:09 -0700)]
MovePage: Check ContentHandler::canBeUsedOn()

If the old content model cannot be used on the new page title, the page
move should be disallowed.

Change-Id: I6078a4cde5a76a050dddedf59634d800765cbabf

7 years agoJpegMetadataExtractor: Allow empty segments
Bartosz Dziewoński [Thu, 29 Sep 2016 22:15:48 +0000 (00:15 +0200)]
JpegMetadataExtractor: Allow empty segments

A segment which consists only of the marker and length value
(equal to 2, the length of the value itself) appears to be
perfectly valid, and is ignored by every image viewer I tested.

Bug: T147015
Change-Id: I3124c587ccb1c457df25fd5bf7a47feab9312a38

7 years agoMerge "Make multi-write backend "template" config work as expected"
jenkins-bot [Thu, 29 Sep 2016 21:31:49 +0000 (21:31 +0000)]
Merge "Make multi-write backend "template" config work as expected"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 29 Sep 2016 20:25:12 +0000 (22:25 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id78eb74f69b0450cdf09a39a41c057b888c143fa

7 years agoMake multi-write backend "template" config work as expected
Aaron Schulz [Wed, 28 Sep 2016 23:37:26 +0000 (16:37 -0700)]
Make multi-write backend "template" config work as expected

* FileBackendGroup now applies the usual config for these sub-backends,
  the same config get() applies.
* Also make sure FileBackendMultiWrite::concatenate() uses the status wrapper.

Bug: T146904
Change-Id: I1e9b5027dbac11ea9484cd16851e5db998574429

7 years agoEnable deprecation warnings for WikiPage::getText()
enigmaeth [Sun, 25 Sep 2016 21:56:22 +0000 (21:56 +0000)]
Enable deprecation warnings for WikiPage::getText()

Deprecated since 1.21.

Bug: T145750
Change-Id: I226458e480bc44d4223bf7b271173bc27902f5ba

7 years agoMerge "Do not run exact db match if offset is > 0"
jenkins-bot [Thu, 29 Sep 2016 16:45:02 +0000 (16:45 +0000)]
Merge "Do not run exact db match if offset is > 0"

7 years agoRELEASE-NOTES for wikimedia/scoped-callback
Kunal Mehta [Thu, 29 Sep 2016 11:06:01 +0000 (04:06 -0700)]
RELEASE-NOTES for wikimedia/scoped-callback

Change-Id: I197028956f2dc7f0b1edcbcf4ba02687440309a7

7 years agoUse wikimedia/scoped-callback
Kunal Mehta [Thu, 29 Sep 2016 08:16:05 +0000 (01:16 -0700)]
Use wikimedia/scoped-callback

The ScopedCallback class was moved into a separate library. This updates
all callers to use the namespaced version, and provides a
backwards-compatibility class wrapper under the old name.

Bug: T146258
Change-Id: I2dd0a66fe2f510f26bdfef6b0a975c1beb3fd93c
Depends-On: Iea0c40bdd7776372ccf72db8f088a2abaa4d3721

7 years agoMerge "Move DatabaseBase to a class alias for type-hints"
jenkins-bot [Thu, 29 Sep 2016 09:21:18 +0000 (09:21 +0000)]
Merge "Move DatabaseBase to a class alias for type-hints"

7 years agoMake WikiPage::getAutosummary emit deprecation warnings.
daniel [Sat, 24 Sep 2016 15:15:08 +0000 (17:15 +0200)]
Make WikiPage::getAutosummary emit deprecation warnings.

Bug: T146164
Change-Id: Ibe76af8af3686c028e54923b9ce01b93af3032ab

7 years agoRevert "Add the main stash, WAN, and server caches to MediaWikiServices"
Hashar [Thu, 29 Sep 2016 08:43:58 +0000 (08:43 +0000)]
Revert "Add the main stash, WAN, and server caches to MediaWikiServices"

 $ php maintenance/eval.php
 > $wgMessageCacheType = CACHE_ACCEL;

 > wfGetMessageCacheStorage();
 PHP Warning:  Illegal offset type in isset or empty in includes/objectcache/ObjectCache.php on line 93
 PHP Warning:  Illegal offset type in isset or empty in includes/objectcache/ObjectCache.php on line 125
 PHP Notice:  Array to string conversion in includes/objectcache/ObjectCache.php on line 133
 Caught exception InvalidArgumentException: Invalid object cache type "Array" requested. It is not present in $wgObjectCaches.
 #0 includes/objectcache/ObjectCache.php(94): ObjectCache::newFromId(Array)
 #1 includes/objectcache/ObjectCache.php(287): ObjectCache::getInstance(Array)
 #2 [internal function]: ObjectCache::getLocalServerInstance(Array)
 #3 includes/objectcache/ObjectCache.php(181): call_user_func('ObjectCache::ge...', Array)
 #4 includes/objectcache/ObjectCache.php(137): ObjectCache::newFromParams(Array)
 #5 includes/objectcache/ObjectCache.php(94): ObjectCache::newFromId(3)
 #6 includes/GlobalFunctions.php(3430): ObjectCache::getInstance(3)
 #7 maintenance/eval.php(78) : eval()'d code(1): wfGetMessageCacheStorage()
 #8 maintenance/eval.php(78): eval()
 #9 {main}

This reverts commit 6d99fa58247a1de7eaf9a79a061f0b4207154072.

Change-Id: I4d756eb6f66318a12d8cbbc1ba546397be8a29bf

7 years agoMerge "Emit deprecation warnings for Article::doEdit and WikiPage::doEdit"
jenkins-bot [Thu, 29 Sep 2016 07:33:52 +0000 (07:33 +0000)]
Merge "Emit deprecation warnings for Article::doEdit and WikiPage::doEdit"

7 years agoMove DatabaseBase to a class alias for type-hints
Aaron Schulz [Wed, 28 Sep 2016 23:08:15 +0000 (16:08 -0700)]
Move DatabaseBase to a class alias for type-hints

Change-Id: Ib6bbbd751358cbc2f2d2767c80721d3d8f142c0d

7 years agoMerge "registration: Improve license-name validation"
jenkins-bot [Thu, 29 Sep 2016 04:37:01 +0000 (04:37 +0000)]
Merge "registration: Improve license-name validation"

7 years agoMerge "Replace DatabaseBase => Database in more places"
jenkins-bot [Thu, 29 Sep 2016 02:45:39 +0000 (02:45 +0000)]
Merge "Replace DatabaseBase => Database in more places"

7 years agoMerge "Make LBFactory return type docs more specific to avoid IDEA warnings"
jenkins-bot [Thu, 29 Sep 2016 02:45:29 +0000 (02:45 +0000)]
Merge "Make LBFactory return type docs more specific to avoid IDEA warnings"

7 years agoRemove test for <math> which fails when Extension:Math is installed
Tim Starling [Wed, 28 Sep 2016 00:17:50 +0000 (10:17 +1000)]
Remove test for <math> which fails when Extension:Math is installed

And add a test for <mw:toc>

C. Scott asked for this test to be added in CR on
Ib48b91238c3eddd6a86b62, but it was never actually executed prior to
Ic840678b851d6fc472b834 due to a TestFileReader bug. The nuisance it
causes now becomes apparent.

As was noted at the time, it is unnecessary because Tidy is not a
sanitization pass, <math> is not whitelisted in the Sanitizer. C. Scott
said "I was just concerned that the particular means used to hide the
mathml from tidy might also hide it from the sanitizer." I don't think
that's plausible, but we can test for it anyway by trying to pass
<mw:toc> elements through the Sanitizer.

Change-Id: I5928e6f31d8b80ef384a1c0e6bacfa789cac9770

7 years agoDon't skip tests which lack non-tidy output
Tim Starling [Wed, 28 Sep 2016 06:30:25 +0000 (16:30 +1000)]
Don't skip tests which lack non-tidy output

Previously some 60 tests which only had tidy output were silently
removed from the test list and were not executed. Perhaps miraculously,
they all pass (if Math is disabled).

Also, throw an error if a test lacks any kind of result section. Fix one
test which accidentally lacked a result section.

Change-Id: Ic840678b851d6fc472b834cde3d8c83359f1c272

7 years agoMerge "Add the main stash, WAN, and server caches to MediaWikiServices"
jenkins-bot [Thu, 29 Sep 2016 01:31:17 +0000 (01:31 +0000)]
Merge "Add the main stash, WAN, and server caches to MediaWikiServices"

7 years agoMerge "Disallow css attr() with url type"
jenkins-bot [Thu, 29 Sep 2016 00:58:43 +0000 (00:58 +0000)]
Merge "Disallow css attr() with url type"

7 years agoMerge "API: Add generator non-continuation data"
jenkins-bot [Thu, 29 Sep 2016 00:21:13 +0000 (00:21 +0000)]
Merge "API: Add generator non-continuation data"

7 years agoReplace DatabaseBase => Database in more places
Aaron Schulz [Wed, 28 Sep 2016 22:53:02 +0000 (15:53 -0700)]
Replace DatabaseBase => Database in more places

Change-Id: If37a7909056bf2c31a8228cbc84f0fbbf5f1c517

7 years agoMake LBFactory return type docs more specific to avoid IDEA warnings
Aaron Schulz [Wed, 28 Sep 2016 22:50:12 +0000 (15:50 -0700)]
Make LBFactory return type docs more specific to avoid IDEA warnings

Change-Id: I5fa6ed87e35f3b8ee17e576faf5d00763229dd4b

7 years agoMerge "resourceloader: Disable ChronologyProtector to speed up wfGetLB()"
jenkins-bot [Wed, 28 Sep 2016 22:41:39 +0000 (22:41 +0000)]
Merge "resourceloader: Disable ChronologyProtector to speed up wfGetLB()"

7 years agoAdd the main stash, WAN, and server caches to MediaWikiServices
Aaron Schulz [Wed, 21 Sep 2016 16:00:08 +0000 (09:00 -0700)]
Add the main stash, WAN, and server caches to MediaWikiServices

Also removed unused getLocalServerInstance() b/c $fallback logic.

Change-Id: Ifa5f798de10783741a7b079f22d283bb9cb7f4c0

7 years agoMerge "rdbms: Lazy-init DatabaseDomain::getId()"
jenkins-bot [Wed, 28 Sep 2016 21:58:48 +0000 (21:58 +0000)]
Merge "rdbms: Lazy-init DatabaseDomain::getId()"

7 years agordbms: Lazy-init DatabaseDomain::getId()
Timo Tijhof [Wed, 28 Sep 2016 21:01:04 +0000 (22:01 +0100)]
rdbms: Lazy-init DatabaseDomain::getId()

Follows-up 847b91b.

Noticed that in Xenon profiles, about 25% of Database::__construct
time is spent in array_map, via DatabaseDomain::convertToString.

* Database::__construct
  * DatabaseDomain::__construct/convertToString/array_map
  * DatabaseDomain::newUnspecified
    * DatabaseDomain::__construct/convertToString/array_map
  * DatabaseMysqlBase::open
    * mysqli::*

Change-Id: Ib5ae7d1d03b27df504a7e5f552e36a0ca6fcf97e

7 years agoMerge "Parser: Allow `<s>` and `<strike>` in table of contents"
jenkins-bot [Wed, 28 Sep 2016 21:31:33 +0000 (21:31 +0000)]
Merge "Parser: Allow `<s>` and `<strike>` in table of contents"