lhc/web/wiklou.git
8 years agoLet LBFactory/LoadBalancer transaction methods take __METHOD__
Aaron Schulz [Tue, 22 Dec 2015 11:05:45 +0000 (03:05 -0800)]
Let LBFactory/LoadBalancer transaction methods take __METHOD__

Also send commitAll() times to statsd like commitMasterChanges().

Change-Id: I261ca89f00e40b35f2ddeef6845b111720e7e43c

8 years agoTitle: Fix typo in variable name
Bartosz Dziewoński [Tue, 22 Dec 2015 17:06:36 +0000 (18:06 +0100)]
Title: Fix typo in variable name

Change-Id: I8da1c995f2da2e7a43c70aeadd28b93e5f3e511f

8 years agoMerge "Support Mustache partials in Mustache template module"
jenkins-bot [Tue, 22 Dec 2015 19:36:27 +0000 (19:36 +0000)]
Merge "Support Mustache partials in Mustache template module"

8 years agoMerge "mediawiki.page.patrol.ajax: Rename file to match module name"
jenkins-bot [Tue, 22 Dec 2015 14:07:40 +0000 (14:07 +0000)]
Merge "mediawiki.page.patrol.ajax: Rename file to match module name"

8 years agoMerge "Make Special:MediaStatistics show a total count of file sizes"
jenkins-bot [Tue, 22 Dec 2015 14:04:34 +0000 (14:04 +0000)]
Merge "Make Special:MediaStatistics show a total count of file sizes"

8 years agoMerge "mediawiki.template: Refactor inaccurate documentation"
jenkins-bot [Tue, 22 Dec 2015 04:39:42 +0000 (04:39 +0000)]
Merge "mediawiki.template: Refactor inaccurate documentation"

8 years agomediawiki.page.patrol.ajax: Rename file to match module name
Timo Tijhof [Tue, 22 Dec 2015 03:10:33 +0000 (19:10 -0800)]
mediawiki.page.patrol.ajax: Rename file to match module name

Change-Id: If8b99d336749d26f18246491ca094487b4dea18e

8 years agoMake Special:MediaStatistics show a total count of file sizes
PranavK [Sat, 19 Dec 2015 12:42:06 +0000 (18:12 +0530)]
Make Special:MediaStatistics show a total count of file sizes

Bug: T117606
Change-Id: I4216566df4dd2423d679f0f64fa694fa06e55c0e

8 years agomediawiki.template: Refactor inaccurate documentation
Timo Tijhof [Tue, 22 Dec 2015 01:41:09 +0000 (17:41 -0800)]
mediawiki.template: Refactor inaccurate documentation

* Fix various incorrect type hints. Various functions were documented
  as returning functions when really they return objects with a render()
  method (aka "Compiled template").
* Improve documentation on what compilers and template interfaces are.

Change-Id: Ib66ddd727858331b61684d2add7b6bc3abd020f1

8 years agoSupport Mustache partials in Mustache template module
jdlrobson [Sat, 25 Apr 2015 00:12:46 +0000 (17:12 -0700)]
Support Mustache partials in Mustache template module

* Add template partial support which matches the server-side implementation
  and means that we have full mustache support.

https://mustache.github.io/mustache.5.html#Partials

Bug: T97188
Change-Id: Ic752f52669dbffa21c4a514509c3ea1da8ac5d9c

8 years agoMerge "mw.ForeignStructuredUpload: Prevent 'null' author name if dialog opened when...
jenkins-bot [Tue, 22 Dec 2015 01:10:12 +0000 (01:10 +0000)]
Merge "mw.ForeignStructuredUpload: Prevent 'null' author name if dialog opened when not logged in"

8 years agoMerge "mw.Upload.BookletLayout: Require non-whitespace description"
jenkins-bot [Tue, 22 Dec 2015 01:08:46 +0000 (01:08 +0000)]
Merge "mw.Upload.BookletLayout: Require non-whitespace description"

8 years agoMerge "RefreshLinksJob: Restore LinksUpdate::setTriggeringUser() call"
jenkins-bot [Tue, 22 Dec 2015 00:38:55 +0000 (00:38 +0000)]
Merge "RefreshLinksJob: Restore LinksUpdate::setTriggeringUser() call"

8 years agoMerge "Revert "API: Add a unit test to check all modules' i18n""
jenkins-bot [Tue, 22 Dec 2015 00:19:15 +0000 (00:19 +0000)]
Merge "Revert "API: Add a unit test to check all modules' i18n""

8 years agoRevert "API: Add a unit test to check all modules' i18n"
Krinkle [Tue, 22 Dec 2015 00:10:38 +0000 (00:10 +0000)]
Revert "API: Add a unit test to check all modules' i18n"

Reverting for now in the sake of productivity and restoration of
the passing unit test status of extensions' master branches.

Would recommend re-applying when the CI gate extensions are
passing and ideally some notification ahead of time to wikitech-l.

This reverts commit 0d3712dd6091b49ff79056388710ac502bed73a1.

Change-Id: I9142e6161257459cd11db0ca4cdd57793cfee8fa

8 years agoUpdate autoload.php
aude [Mon, 21 Dec 2015 10:32:48 +0000 (12:32 +0200)]
Update autoload.php

with new classes introduced in I9518a52

Change-Id: I971a4a0c4e2cceff67072398960321c1a5dbf549

8 years agoMerge "Add $revision to TitleMoveCompleting for completeness"
jenkins-bot [Mon, 21 Dec 2015 23:01:31 +0000 (23:01 +0000)]
Merge "Add $revision to TitleMoveCompleting for completeness"

8 years agoMerge "SpecialWatchlist: Avoid double space between checkbox and label"
jenkins-bot [Mon, 21 Dec 2015 20:58:17 +0000 (20:58 +0000)]
Merge "SpecialWatchlist: Avoid double space between checkbox and label"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 21 Dec 2015 20:47:46 +0000 (21:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id01f5e152f0eebbe42e5faab9c21450b10148483

8 years agoSpecialWatchlist: Avoid double space between checkbox and label
Fomafix [Mon, 21 Dec 2015 20:32:59 +0000 (20:32 +0000)]
SpecialWatchlist: Avoid double space between checkbox and label

Add a separate message 'wlshowhidecategorization' without parameter.

Change-Id: I02a302f90e5c275559118698e31a46237b4b1cb1

8 years agoMerge "Add a new hook AfterBuildFeedLinks to manipulate feed links"
jenkins-bot [Mon, 21 Dec 2015 19:43:36 +0000 (19:43 +0000)]
Merge "Add a new hook AfterBuildFeedLinks to manipulate feed links"

8 years agoMerge "API: Improve description for ApiQueryPrefixSearch"
jenkins-bot [Mon, 21 Dec 2015 19:14:10 +0000 (19:14 +0000)]
Merge "API: Improve description for ApiQueryPrefixSearch"

8 years agomw.ForeignStructuredUpload: Prevent 'null' author name if dialog opened when not...
Bartosz Dziewoński [Mon, 21 Dec 2015 18:22:20 +0000 (19:22 +0100)]
mw.ForeignStructuredUpload: Prevent 'null' author name if dialog opened when not logged in

Bug: T121097
Change-Id: Ifb178161fabe3adf0a76543a1226eb91adfe1b1d

8 years agomw.Upload.BookletLayout: Require non-whitespace description
Bartosz Dziewoński [Mon, 21 Dec 2015 18:09:34 +0000 (19:09 +0100)]
mw.Upload.BookletLayout: Require non-whitespace description

Bug: T121746
Change-Id: I10d331154613dfa5c37ecc021a2ec60893e0b93d

8 years agoMerge "mediawiki.util: Use correct encoding for fragment in getUrl"
jenkins-bot [Mon, 21 Dec 2015 16:37:39 +0000 (16:37 +0000)]
Merge "mediawiki.util: Use correct encoding for fragment in getUrl"

8 years agomediawiki.util: Use correct encoding for fragment in getUrl
Fomafix [Mon, 21 Dec 2015 06:17:11 +0000 (06:17 +0000)]
mediawiki.util: Use correct encoding for fragment in getUrl

Introduce mw.util.escapeId with same encoding as Sanitizer::escapeId.

Add more tests to getUrl:
* empty title
* several characters for encoding test

Bug: T103553
Bug: T103661
Change-Id: I15d8c48b9ea4a144a0938353c5b265cb6b6a159b

8 years agoMerge "mw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred"
jenkins-bot [Mon, 21 Dec 2015 15:43:54 +0000 (15:43 +0000)]
Merge "mw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred"

8 years agoAPI: Improve description for ApiQueryPrefixSearch
Brad Jorsch [Mon, 21 Dec 2015 15:27:46 +0000 (10:27 -0500)]
API: Improve description for ApiQueryPrefixSearch

Make it clear that the purpose of ApiQueryPrefixSearch is ''search'',
not to be an equivalent of Special:PrefixIndex.

Change-Id: I5012d8e99b3250723d875fbb9ed5fbc08e53ca17

8 years agomw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred
Prateek Saxena [Mon, 21 Dec 2015 15:26:10 +0000 (20:56 +0530)]
mw.Upload.BookletLayout: Use $.Deferred(), not $.Deferred

Follows up on I1ac083fd491c7445240b4fd9f7b3badacb2d2d37

Change-Id: I58e9ad669f7b373b45861e4b41f488b167509b34

8 years agoMerge "Import: Properly handle deleted usernames in XML dumps"
jenkins-bot [Mon, 21 Dec 2015 13:00:49 +0000 (13:00 +0000)]
Merge "Import: Properly handle deleted usernames in XML dumps"

8 years agoImport: Properly handle deleted usernames in XML dumps
georggi [Mon, 21 Dec 2015 12:50:20 +0000 (14:50 +0200)]
Import: Properly handle deleted usernames in XML dumps

Fixed username being not shown at all when contributor is deleted
Fixed text not being shown when contributor is deleted

Bug: T121338
Change-Id: I981c326f61735ace1d1fba35428bfc25d127b544

8 years agoMerge "Prevent blocked users from performing revision deletion"
jenkins-bot [Mon, 21 Dec 2015 03:36:31 +0000 (03:36 +0000)]
Merge "Prevent blocked users from performing revision deletion"

8 years agoPrevent blocked users from performing revision deletion
Andrew H [Sun, 20 Dec 2015 23:49:10 +0000 (23:49 +0000)]
Prevent blocked users from performing revision deletion

Also fixed messege -> message in a comment.

Change-Id: Icee9a5816dae51a23c333ae49f47d14f5e08cb03

8 years agoMerge "Remove ApiQueryBase::getDirectionDescription()"
jenkins-bot [Mon, 21 Dec 2015 02:14:44 +0000 (02:14 +0000)]
Merge "Remove ApiQueryBase::getDirectionDescription()"

8 years agoRemove ApiQueryBase::getDirectionDescription()
Reedy [Sun, 20 Dec 2015 17:03:34 +0000 (17:03 +0000)]
Remove ApiQueryBase::getDirectionDescription()

Deprecated since 1.25

Moved some other API related removal notices

Change-Id: Ibbff6092a10df33f1641f18946765d0032199308

8 years agoMerge "Remove gen from RawAction."
jenkins-bot [Sun, 20 Dec 2015 23:37:39 +0000 (23:37 +0000)]
Merge "Remove gen from RawAction."

8 years agoMerge "Update HISTORY for last round of releases"
jenkins-bot [Sun, 20 Dec 2015 23:29:56 +0000 (23:29 +0000)]
Merge "Update HISTORY for last round of releases"

8 years agoMerge "Add @since tags to FauxRequest::getRequestURL()/setRequestURL()"
jenkins-bot [Sun, 20 Dec 2015 23:28:38 +0000 (23:28 +0000)]
Merge "Add @since tags to FauxRequest::getRequestURL()/setRequestURL()"

8 years agoAdd @since tags to FauxRequest::getRequestURL()/setRequestURL()
Reedy [Sun, 20 Dec 2015 23:04:24 +0000 (23:04 +0000)]
Add @since tags to FauxRequest::getRequestURL()/setRequestURL()

Change-Id: I6c104fe2df258eda15ebf8df089390dcdb80a3ef

8 years agoUpdate HISTORY for last round of releases
Reedy [Sun, 20 Dec 2015 21:38:04 +0000 (21:38 +0000)]
Update HISTORY for last round of releases

Change-Id: I110b9c14aa042449524acf5b866e30f8fece4372

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 20 Dec 2015 21:08:36 +0000 (22:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4e6e48dba1810e5092b6211850d5a7f62b866f78

8 years agoMerge "Support fragments in mw.util.getUrl()"
jenkins-bot [Sun, 20 Dec 2015 19:50:13 +0000 (19:50 +0000)]
Merge "Support fragments in mw.util.getUrl()"

8 years agoSupport fragments in mw.util.getUrl()
Andrew H [Sat, 19 Dec 2015 22:47:31 +0000 (22:47 +0000)]
Support fragments in mw.util.getUrl()

Bug: T103553
Change-Id: I25c5ce2fde468202ce7ba5aa1c8cf0e3576c6057

8 years agoSpecialPageLanguage: Use title input (enable suggestions) and autofocus
Florian [Sat, 19 Dec 2015 23:02:04 +0000 (00:02 +0100)]
SpecialPageLanguage: Use title input (enable suggestions) and autofocus

The title input field requires a valid title, so suggestions make sense
to suggest possible existing pages to the user.

Autofocus the input field, if the title is empty allows the user to type
the title with less clicks.

Bug: T120577
Change-Id: I8a75fdeccbe2be2144fcc15439ffefae1e89c6a9

8 years agoMerge "ApiQueryBase::checkRowCount() was removed"
jenkins-bot [Sun, 20 Dec 2015 15:48:21 +0000 (15:48 +0000)]
Merge "ApiQueryBase::checkRowCount() was removed"

8 years agoMerge "[Special:Preferences] Switch tabs when hash is set to an item in another tab."
jenkins-bot [Sun, 20 Dec 2015 15:48:17 +0000 (15:48 +0000)]
Merge "[Special:Preferences] Switch tabs when hash is set to an item in another tab."

8 years ago[Special:Preferences] Switch tabs when hash is set to an item in another tab.
Scimonster [Sat, 19 Dec 2015 22:23:07 +0000 (00:23 +0200)]
[Special:Preferences] Switch tabs when hash is set to an item in another tab.

If the hash is set to a specific preference item (such as
Special:Preferences#mw-input-wprcdays),
automatically switch to the tab the item is located on and scroll to it.
Move the code that handled the hash into a separate function for DRY-
ness.
Fix a couple comment typos.
Task done as part of GCI2015.

Bug: T54469
Change-Id: I9e0573b37a847ab915b7c74facf65b3d24883064

8 years agoApiQueryBase::checkRowCount() was removed
Reedy [Sun, 20 Dec 2015 14:24:07 +0000 (14:24 +0000)]
ApiQueryBase::checkRowCount() was removed

Deprecated since 1.24

Change-Id: Id3357ccd8b5eb3f5e2fe1c63fc7b72ae38d6ac1a

8 years agoApiQueryBase titleToKey(), keyToTitle() and keyPartToTitle() removed
Reedy [Sun, 20 Dec 2015 14:21:14 +0000 (14:21 +0000)]
ApiQueryBase titleToKey(), keyToTitle() and keyPartToTitle() removed

All deprecated since 1.24.

Change-Id: I8cf91a12d564dc6b2c48ead5f3f382bebb0217bc
Depends-On: Id788b8f1dbf5b4b7079d361eb1357b3ae942d89d

8 years agoRemoved User::editToken() (deprecated since 1.19)
Reedy [Tue, 15 Dec 2015 22:30:53 +0000 (22:30 +0000)]
Removed User::editToken() (deprecated since 1.19)

Change-Id: I734e9637317c0737e96e963bafb10ef966d6d172

8 years agoRemoved Article::loadContent() (deprecated since 1.19)
Reedy [Tue, 15 Dec 2015 22:27:36 +0000 (22:27 +0000)]
Removed Article::loadContent() (deprecated since 1.19)

All usages in extensions are removed

Change-Id: Ie03c384730f59a67a969aed0a866e2bf71247e87

8 years agoMove ApiQueryGeneratorBase to it's own file
aude [Sun, 20 Dec 2015 09:41:34 +0000 (18:41 +0900)]
Move ApiQueryGeneratorBase to it's own file

Change-Id: Ia8e9ab256c8a7a72bb407090f7a4a49484e529e4

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 19 Dec 2015 23:06:50 +0000 (00:06 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1fbcf172c1d2bc65532eb4cc7175d4fce898bf89

8 years agoAdd a maintenance script for finding deprecated interfaces
Ori Livneh [Mon, 14 Dec 2015 20:07:17 +0000 (12:07 -0800)]
Add a maintenance script for finding deprecated interfaces

Add a maintenance script, findDeprecated.php, which iterates through
$IP/include/**.php, looking for functions and methods which have been marked as
deprecated (via a '@deprecated' tag in the doc-block), and then prints a
detailed report indicating the version, file, line and version of each
deprecated interface.

Change-Id: I9518a52b8c51ee972552a94f5367c1faa7e04a3a

8 years agoPrevent blocked users from modifying change tags
Andrew H [Wed, 16 Dec 2015 01:03:45 +0000 (01:03 +0000)]
Prevent blocked users from modifying change tags

Bug: T102063
Change-Id: I030b781175c998dd1553c87042d98ded8eb6bc84

8 years agoFix transaction-duration-limit-exceeded
Amir E. Aharoni [Sat, 19 Dec 2015 21:23:18 +0000 (23:23 +0200)]
Fix transaction-duration-limit-exceeded

* Fix the wording.
* Add PLURAL support.

Bug: T121821
Change-Id: I9cf27534a5b7a055a7c2544f6366dd0e40c5e9a3

8 years agoMerge "Document mw.user.options and mw.user.tokens properties"
jenkins-bot [Sat, 19 Dec 2015 18:07:23 +0000 (18:07 +0000)]
Merge "Document mw.user.options and mw.user.tokens properties"

8 years agoMerge "API: Add a unit test to check all modules' i18n"
jenkins-bot [Sat, 19 Dec 2015 14:25:44 +0000 (14:25 +0000)]
Merge "API: Add a unit test to check all modules' i18n"

8 years agoMerge "Fix spelling mistakes in comments"
jenkins-bot [Sat, 19 Dec 2015 14:19:44 +0000 (14:19 +0000)]
Merge "Fix spelling mistakes in comments"

8 years agoAPI: Add a unit test to check all modules' i18n
Brad Jorsch [Thu, 17 Dec 2015 19:57:12 +0000 (14:57 -0500)]
API: Add a unit test to check all modules' i18n

It's not perfect since module i18n can vary on configuration, but it
should catch many cases of forgotten i18n.

Change-Id: Ida7e5720fe304c5168fe752b1b5485fe4cb2cb45
Depends-On: I4a0a6c47afdd62e1c9d0b29f066d2a6d1791b52d
Depends-On: I378d112a36c0981ac8d5366e3e1805ead71a85c8
Depends-On: If9e1ae5f1e360385e70bd68ec9847230bd274d9d
Depends-On: If2694de72a62e46cfdc29401c4d2d3756897c998

8 years agoFix spelling mistakes in comments
Ed Sanders [Sat, 19 Dec 2015 12:45:47 +0000 (12:45 +0000)]
Fix spelling mistakes in comments

Change-Id: Id608f402e1f308fbe83e6c262e5f2750efb41ebb

8 years agoMerge "jquery.suggestions: Improve comment about avoiding click interference"
jenkins-bot [Sat, 19 Dec 2015 12:03:30 +0000 (12:03 +0000)]
Merge "jquery.suggestions: Improve comment about avoiding click interference"

8 years agoMerge "Handle missing titles and usernames when importing log items"
jenkins-bot [Sat, 19 Dec 2015 10:26:53 +0000 (10:26 +0000)]
Merge "Handle missing titles and usernames when importing log items"

8 years agoHandle missing titles and usernames when importing log items
georggi [Sat, 19 Dec 2015 09:06:26 +0000 (11:06 +0200)]
Handle missing titles and usernames when importing log items

Bug: T121338
Change-Id: Idf95263e4f22225509da4ee07fcb14383028894b

8 years agojquery.suggestions: Improve comment about avoiding click interference
Timo Tijhof [Thu, 17 Dec 2015 19:52:39 +0000 (11:52 -0800)]
jquery.suggestions: Improve comment about avoiding click interference

Change-Id: I971f6163f08cd419c29cac372157c0336b5fd132

8 years agoUpdate cssjanus/cssjanus to v1.1.2
Reedy [Sat, 19 Dec 2015 00:58:19 +0000 (00:58 +0000)]
Update cssjanus/cssjanus to v1.1.2

Change-Id: I29ab5aa1f3015f817576d84aad836d22aed012bb
Depends-On: Iaf72a626c75b34a6c9a1b3381a80e74040e72355

8 years agoMerge "Refresh autoload.php"
jenkins-bot [Fri, 18 Dec 2015 22:49:49 +0000 (22:49 +0000)]
Merge "Refresh autoload.php"

8 years agoMerge "Allow overriding the resultSetType reported via event logging of suggestions"
jenkins-bot [Fri, 18 Dec 2015 22:35:22 +0000 (22:35 +0000)]
Merge "Allow overriding the resultSetType reported via event logging of suggestions"

8 years agoRefresh autoload.php
Bartosz Dziewoński [Fri, 18 Dec 2015 22:33:55 +0000 (23:33 +0100)]
Refresh autoload.php

/me stabs Aaron

Change-Id: I82233877840273ece1c41da73c998fa2bd1b2c99

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 18 Dec 2015 21:55:23 +0000 (22:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8d03c07972638e68812a6c06d9da00e283374736

8 years agoAllow overriding the resultSetType reported via event logging of suggestions
Erik Bernhardson [Fri, 18 Dec 2015 21:21:53 +0000 (13:21 -0800)]
Allow overriding the resultSetType reported via event logging of suggestions

Change-Id: I0c1b19019f11b719a6d728d6a46881cc83ca2430

8 years agoMerge "No-op the notify*/purge methods in JobQueueAggregatorRedis"
jenkins-bot [Fri, 18 Dec 2015 20:14:41 +0000 (20:14 +0000)]
Merge "No-op the notify*/purge methods in JobQueueAggregatorRedis"

8 years agoMerge "Remove unused ApiStashEdit variable"
jenkins-bot [Fri, 18 Dec 2015 20:08:39 +0000 (20:08 +0000)]
Merge "Remove unused ApiStashEdit variable"

8 years agoMerge "Don't trigger 'wikipage.diff' hook for content that looks like a diff"
jenkins-bot [Fri, 18 Dec 2015 19:27:16 +0000 (19:27 +0000)]
Merge "Don't trigger 'wikipage.diff' hook for content that looks like a diff"

8 years agoAdd a new hook AfterBuildFeedLinks to manipulate feed links
Florian [Fri, 18 Dec 2015 19:09:34 +0000 (20:09 +0100)]
Add a new hook AfterBuildFeedLinks to manipulate feed links

Some extensions may want to replace, remove or manipulate a specific
feed link after it was build. For this purpose: Add a new hook to enable
this. The hook isn't meant for adding new feed links, this is already
easily possible using OutputPage::addFeedLink().

Bug: T121774
Change-Id: If48bd07a0e7e67fd1c1a94ebaa28ca9dae146c55

8 years agoMerge "Make ApiStashEdit use statsd metrics"
Aaron Schulz [Fri, 18 Dec 2015 16:19:11 +0000 (16:19 +0000)]
Merge "Make ApiStashEdit use statsd metrics"

8 years agoMerge "Avoid negative JobRunner time stats"
Aaron Schulz [Fri, 18 Dec 2015 16:19:05 +0000 (16:19 +0000)]
Merge "Avoid negative JobRunner time stats"

8 years agoMerge "Adds i18n for ApiRollback.php tag parameter"
jenkins-bot [Fri, 18 Dec 2015 10:49:00 +0000 (10:49 +0000)]
Merge "Adds i18n for ApiRollback.php tag parameter"

8 years agoAdds i18n for ApiRollback.php tag parameter
mhutti1 [Thu, 17 Dec 2015 22:16:57 +0000 (23:16 +0100)]
Adds i18n for ApiRollback.php tag parameter

My first patch lacked this but it should now be added.

Bug: T121805
Change-Id: Ie58110e7bd09bf45dfcf10d0d2ca8d0e7b8ad82e

8 years agoAdd $query to JavaScript redirect info
Bartosz Dziewoński [Thu, 19 Nov 2015 22:13:13 +0000 (17:13 -0500)]
Add $query to JavaScript redirect info

Bug: T109724
Signed-off-by: Chad Horohoe <chadh@wikimedia.org>
Change-Id: I57a8f75067365d3da6388d2f8f7fe95ed5e6f310

8 years agoSECURITY: Make Special:MyPage and friends fake redirect to prevent info leak
csteipp [Mon, 5 Oct 2015 23:58:42 +0000 (16:58 -0700)]
SECURITY: Make Special:MyPage and friends fake redirect to prevent info leak

This prevents a malicious person from using external resources on their
website to cause the victim's web browser to load
Special:MyPage -> User:Username, and then looking it up in the page hit
statistics in order to correlate IPs from the malicious person's server
log, with usernames on wiki.

This feature can be disabled with $wgHideIdentifiableRedirects.

Bug: T109724
Signed-off-by: Chad Horohoe <chadh@wikimedia.org>
Change-Id: Ia0e742dc92c77af4832174dfa24c6dcaa6ee80e9

8 years agoFix IP::toHex for IPv4 addresses with a double/triple 0 block
Marius Hoch [Sat, 2 May 2015 16:48:04 +0000 (18:48 +0200)]
Fix IP::toHex for IPv4 addresses with a double/triple 0 block

Bug: T97897
Signed-off-by: Chad Horohoe <chadh@wikimedia.org>
Change-Id: I5c0a37be42ae2c5091ead487a6d19f6e0dd89b36

8 years ago[SECURITY] 0-pad to length in random string generation
Brad Jorsch [Wed, 14 Oct 2015 21:40:42 +0000 (17:40 -0400)]
[SECURITY] 0-pad to length in random string generation

Otherwise shorter strings might be generated.

Bug: T115522
Signed-off-by: Chad Horohoe <chadh@wikimedia.org>
Change-Id: I110d873d56762552060fd428c236c8b0e9a859b0

8 years agoSECURITY: Work around CURL insanity breaking POST parameters that start with '@'
Roan Kattouw [Fri, 6 Nov 2015 20:55:16 +0000 (12:55 -0800)]
SECURITY: Work around CURL insanity breaking POST parameters that start with '@'

CURL has a "feature" where passing array( 'foo' => '@bar' )
in CURLOPT_POSTFIELDS results in the contents of the file named "bar"
being POSTed. This makes it impossible to POST the literal string "@bar",
because array( 'foo' => '%40bar' ) gets double-encoded to foo=%2540bar.

Disable this "feature" by setting CURLOPT_SAFE_UPLOAD to true,
if available. According to the PHP manual, this option became
available in 5.5 and started defaulting to true in 5.6.
However, we support versions as low as 5.3, and this option
doesn't exist at all in 5.6.99-hhvm, which we run in production.

For versions where this option is not available (pre-5.5 versions
and HHVM), serialize POSTFIELDS arrays to strings. This works
around the issue because the '@' "feature" only works
for arrays, not strings, as of PHP 5.2. (We don't support pre-5.2
versions, and I've verified 5.6.99-hhvm behaves this way as well.)

Bug: T118032
Signed-off-by: Chad Horohoe <chadh@wikimedia.org>
Change-Id: I3f996e2eb87c7bd3b94ca9d3cc14a3e12f34f241

8 years agoMake ApiStashEdit use statsd metrics
Aaron Schulz [Wed, 16 Dec 2015 19:42:12 +0000 (11:42 -0800)]
Make ApiStashEdit use statsd metrics

Change-Id: Iffdeae7f867490e3c69c4b6d79a5f844cb7fce23

8 years agoAvoid negative JobRunner time stats
Aaron Schulz [Wed, 16 Dec 2015 22:43:12 +0000 (14:43 -0800)]
Avoid negative JobRunner time stats

This can happen in sub-second cases with skew. It makes
graphana tend to see -1 as the min for some time values.

Change-Id: I4e39d8ac29f515fd76548f1a7b64d71a03064407

8 years agoNo-op the notify*/purge methods in JobQueueAggregatorRedis
Aaron Schulz [Thu, 12 Nov 2015 03:20:07 +0000 (19:20 -0800)]
No-op the notify*/purge methods in JobQueueAggregatorRedis

This should be managed by the background service now

Change-Id: I5d905760b509f66e10019ff8a4146db8a6c4c9d7

8 years agoUse hash_equals in User::matchEditToken
Gergő Tisza [Sat, 21 Nov 2015 19:51:02 +0000 (11:51 -0800)]
Use hash_equals in User::matchEditToken

There is no point in using hash_equals for the return value if we
do a normal comparison before.

Bug: T119309
Signed-off-by: Chad Horohoe <chadh@wikimedia.org>
Change-Id: Ia44ec5ed492105b27d0fddd845d58d27a29dc072

8 years agoMerge "mediawiki.action.view.redirect: Explicitly scroll to element in hash"
jenkins-bot [Fri, 18 Dec 2015 00:38:15 +0000 (00:38 +0000)]
Merge "mediawiki.action.view.redirect: Explicitly scroll to element in hash"

8 years agomediawiki.action.view.redirect: Explicitly scroll to element in hash
jdlrobson [Mon, 14 Dec 2015 23:52:39 +0000 (15:52 -0800)]
mediawiki.action.view.redirect: Explicitly scroll to element in hash

Specification of replaceState doesn't state whether the browser should scroll to the element
matching the fragment [1]. It only determines how to alter the history stack.
(The fact it doesn't impact UI is sometimes a desired behaviour [2)]

As a result force a scroll to the element. Harmless if element is already present.

[1] http://www.w3.org/TR/2011/WD-html5-20110113/history.html#the-history-interface
[2] http://lea.verou.me/2011/05/change-url-hash-without-page-jump/

Bug: T110501
Change-Id: I7440f7a6a6dd20d984da1834007d581324fb96f4

8 years agomw.MessagePoster: Fix creation of mw.Api() object
Kunal Mehta [Thu, 17 Dec 2015 23:28:17 +0000 (15:28 -0800)]
mw.MessagePoster: Fix creation of mw.Api() object

Follows up 59fca1594c3183.

Change-Id: If37b151a11a5d21332d8fa14ee85a254e7e0bf04

8 years agoMerge "Fix PPNode_Hash_Tree::getChildrenOfType return value"
jenkins-bot [Thu, 17 Dec 2015 22:27:04 +0000 (22:27 +0000)]
Merge "Fix PPNode_Hash_Tree::getChildrenOfType return value"

8 years agoMerge "Expand MediaWiki::main() $wgTrxProfilerLimits logging"
jenkins-bot [Thu, 17 Dec 2015 22:18:28 +0000 (22:18 +0000)]
Merge "Expand MediaWiki::main() $wgTrxProfilerLimits logging"

8 years agoFix PPNode_Hash_Tree::getChildrenOfType return value
Brad Jorsch [Wed, 9 Dec 2015 17:56:30 +0000 (12:56 -0500)]
Fix PPNode_Hash_Tree::getChildrenOfType return value

PPNode defines it as returning an array-type PPNode, not an array.

Change-Id: I9a6c5cea408aae449bfbf808d067837c4337c672

8 years agoMerge "Revert "Don't check namespace in SpecialWantedtemplates""
jenkins-bot [Thu, 17 Dec 2015 21:46:20 +0000 (21:46 +0000)]
Merge "Revert "Don't check namespace in SpecialWantedtemplates""

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 17 Dec 2015 21:25:59 +0000 (22:25 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8b05cc6d002aab5167d7b92656f5b305cce082e7

8 years agoMerge "Merge namespace aliases like we merge namespace names"
jenkins-bot [Thu, 17 Dec 2015 19:03:48 +0000 (19:03 +0000)]
Merge "Merge namespace aliases like we merge namespace names"

8 years agoRefreshLinksJob: Restore LinksUpdate::setTriggeringUser() call
Kunal Mehta [Thu, 17 Dec 2015 18:50:53 +0000 (10:50 -0800)]
RefreshLinksJob: Restore LinksUpdate::setTriggeringUser() call

This partially reverts 22476baa85bdb70c60, as the setTriggeringUser()
call that was removed was being used by Echo to be able to determine
which user caused a LinksUpdate to be triggered.

Bug: T121780
Change-Id: I62732032a6b74f17b5ae6a2497fa519f9ff38d4f

8 years agoFix $namespaceAliases error from 2011
Siebrand Mazeland [Thu, 17 Dec 2015 11:32:49 +0000 (12:32 +0100)]
Fix $namespaceAliases error from 2011

Ref: https://phabricator.wikimedia.org/rMW0a27d489e81de2d62165844987d0901a44e2ac21#5ae2ccb1
Bug: T120702
Change-Id: I02906f36ea90233e8e793fd3225c130e7144d521

8 years agoUse "system administrator" when server access was needed
Siebrand Mazeland [Thu, 17 Dec 2015 08:59:57 +0000 (09:59 +0100)]
Use "system administrator" when server access was needed

Bug: T103884
Change-Id: Id8b540c0a5485072c855388bf1e20b7e7e97f451