Commit graph

5163 commits

Author SHA1 Message Date
Translation updater bot
edda29d73a Localisation updates from https://translatewiki.net.
Change-Id: I6e67503e539268e66f495a594f29231e3ee4b6dd
2017-04-19 22:22:15 +02:00
Translation updater bot
8380cef07a Localisation updates from https://translatewiki.net.
Change-Id: I6c1534c40494dff1a9866fa5ec478c4646477688
2017-04-18 21:57:20 +02:00
jenkins-bot
d83306610d Merge "Move DB errors to Rdbms namespace" 2017-04-17 22:06:42 +00:00
Translation updater bot
a1b093aa1f Localisation updates from https://translatewiki.net.
Change-Id: I6518eb7aa39e3933714d2df77f881a0929196d71
2017-04-17 21:54:55 +02:00
Translation updater bot
c3a61a2748 Localisation updates from https://translatewiki.net.
Change-Id: Id03227c4e4d8963db6cd44ee0bde953dbe2128c6
2017-04-17 09:57:10 +02:00
Translation updater bot
8260bc20b0 Localisation updates from https://translatewiki.net.
Change-Id: Ib5b863d0778647034f75e65c45e4a10986ec1a3d
2017-04-16 09:43:40 +02:00
Aaron Schulz
dd359741cc Move DB errors to Rdbms namespace
Change-Id: I463bd86123501abc68fdb78b4cda6110f7af2549
2017-04-15 10:47:41 -07:00
Translation updater bot
b7235c6c65 Localisation updates from https://translatewiki.net.
Change-Id: I077d94de0c0681f31bac6aab7257151eb8b76fec
2017-04-15 09:56:12 +02:00
jenkins-bot
0432618416 Merge "Add comments to ApiBase::isWriteMode()" 2017-04-13 00:29:42 +00:00
Aaron Schulz
be4065c55f Add comments to ApiBase::isWriteMode()
Change-Id: I3581f5e3055c425367d265a5c57831bb34dd5a2f
2017-04-12 16:17:00 -07:00
Translation updater bot
79dead945e Localisation updates from https://translatewiki.net.
Change-Id: I9d431f5c949ec909d85949436b90ffde42139962
2017-04-12 21:57:18 +02:00
jenkins-bot
0697e41485 Merge "Move Database and subclasses to Rdbms namespace" 2017-04-12 18:07:43 +00:00
Aaron Schulz
d735dc562d Move Database and subclasses to Rdbms namespace
Change-Id: I52bef87512f9ddd155d1f4cc0052f6b7a0db5b42
2017-04-12 10:43:57 -07:00
Translation updater bot
39300f7196 Localisation updates from https://translatewiki.net.
Change-Id: I9d8d4197b88a4ded273ec2ed874b0965d9df1bb8
2017-04-11 22:18:15 +02:00
Kunal Mehta
de9f9bda7d API: Optionally include in job queue size in maxlag
maxlag is the default mechanism most bots and libraries use in
determining when to back off due to wiki overload. However these days,
there are other things that should be considered when asking bots to
back off, one of those is job queue size.

For compatibility and simplicity of use, the number of jobs is converted
into something resembling seconds using a configurable factor. We also
output the total number of jobs in the API error output so more
sophisticated clients can do a more advanced back off.

Bug: T160003
Change-Id: Iedae2344a3d93202efbdd1bf807cef6165b6257a
2017-04-10 19:24:24 -07:00
Translation updater bot
5f823d1e83 Localisation updates from https://translatewiki.net.
Change-Id: I742a743e37c056c2bc04d09a1ce86d05aa65ae1d
2017-04-09 21:52:36 +02:00
Translation updater bot
4b7be83909 Localisation updates from https://translatewiki.net.
Change-Id: I325563cad264df780d346f76427a324f7b58160d
2017-04-08 22:36:24 +02:00
jenkins-bot
4d609f015d Merge "ApiPageSet: Follow RedirectSpecialArticle redirects" 2017-04-08 09:36:21 +00:00
Translation updater bot
5c16eaa013 Localisation updates from https://translatewiki.net.
Change-Id: I4ccefb84808700373dfb0a694991a5c47fe9a48b
2017-04-07 22:04:40 +02:00
Brian Wolff
55035e01e5 SECURITY: Do not allow users to undelete a page they can't edit or create
If the page exists, it only checks edit rights, otherwise it
checks both edit and create rights.

This would only matter on wikis that have a non-default rights
configuration where there are users with undelete rights but a
restriction level enabled that prevents them from creating/editing
pages (or they otherwise aren't allowed to edit/create)

It should be noted that the error messages aren't used in the
normal UI currently, but they could be in the future, and
extensions could potentially be using them (The backend functions
return them, but the UI functions in Special:Undelete ignore
them)

Bug: T108138
Change-Id: I164b80534cf89e0afca264e9de07431484af8508
2017-04-06 13:44:55 -07:00
Brad Jorsch
4d38a489b0 SECURITY: API: Don't log "sensitive" parameters
Stuff like passwords and CSRF tokens shouldn't be in the logs.

The fact of being sensitive is intentionally separated from the need to
be in the POST body because, for example, the wltoken parameter to
ApiQueryWatchlist needs to be in the query string to serve its purpose
but still shouldn't be logged.

Bug: T125177
Change-Id: I1d61f4dcf792d77401ee2e2988b1afcb2a2ad58f
2017-04-06 13:42:48 -07:00
Reedy
26bec934a0 Add ar_ prefix back to usertext_timestamp USE INDEX
This is the correct/canonical index name. For usages on mysql it will
map to the unprefixed version.

Bug: T154872
Change-Id: Ie2daf7b33428855ac59c85bf04a99a9bca7feba1
2017-04-05 23:40:03 +00:00
Translation updater bot
7f4ba2d1b5 Localisation updates from https://translatewiki.net.
Change-Id: Ia1e572056c019182ccb486df6c75de2acfe44459
2017-04-05 21:59:32 +02:00
Baha
036b9c4167 Make API documentation links language aware
Links generated by the API are now aware of the user's preferred
language and will show documents in that language if available.

To test, log in to mediawiki.org and set your language preference to 'es',
then on an MediaWiki installation with this patch view the generated
expanded API help at `api.php?action=help&recursivesubmodules=1&modules=main`.
Each link to documentation on mediawiki.org should take you to its
translated /es subpage, if one exists.

Bug: T104518
Change-Id: I339a1f3ae1bce9d759cf251899d57c32b1def91e
2017-04-05 11:08:25 -04:00
Translation updater bot
9c8f2c4597 Localisation updates from https://translatewiki.net.
Change-Id: I78124a764a2b8c0a7fc26c251621a68bdf86a92f
2017-04-04 21:54:51 +02:00
Translation updater bot
888ae46bc3 Localisation updates from https://translatewiki.net.
Change-Id: I60c8477ebebcc647c3d9b3e0ac0902401fe10f28
2017-04-03 21:59:59 +02:00
Translation updater bot
4aebee77c4 Localisation updates from https://translatewiki.net.
Change-Id: I4e9b249b425cdd6cd5ccda7d63a4d61748c387c5
2017-04-02 21:53:56 +02:00
Translation updater bot
c89995594d Localisation updates from https://translatewiki.net.
Change-Id: Ib10af896efdc2a9e354ca77776b17bb546357518
2017-04-01 21:54:23 +02:00
jenkins-bot
2efdb4da88 Merge "API: Allow returning parse warnings for action=parse" 2017-03-31 22:01:28 +00:00
Translation updater bot
350cf248b2 Localisation updates from https://translatewiki.net.
Change-Id: Idfecf37225dbcb6d02fcb7988263437dbb01af16
2017-03-31 22:34:04 +02:00
Baha
2326d420c7 API: Allow returning parse warnings for action=parse
Passing in the 'parsewarnings' property will return warnings related
to parsing content.

Bug: T92634
Change-Id: I7e54765ee9a24ffb78e7763f73a520151023baf6
2017-03-31 13:07:31 -07:00
Translation updater bot
c3c730f494 Localisation updates from https://translatewiki.net.
Change-Id: Ia2c8ceda86ed0cfcc66d5be2c9b7653931379245
2017-03-30 22:16:21 +02:00
jenkins-bot
c6436de8f6 Merge "Allow filtering by username on Special:NewFiles" 2017-03-29 14:11:40 +00:00
jenkins-bot
ea747bb2d4 Merge "Move IDatabase/IMaintainableDatabase to Rdbms namespace" 2017-03-29 00:46:59 +00:00
jenkins-bot
13a2d7b1f9 Merge "Deprecate "Avoid page_touched update for HTTP GET action=purge requests"" 2017-03-28 23:32:06 +00:00
Aaron Schulz
488a647831 Move IDatabase/IMaintainableDatabase to Rdbms namespace
Change-Id: If7e8a8ff574661fd827de8bcec11d2c39a687300
2017-03-28 15:32:38 -07:00
Translation updater bot
1d7acae597 Localisation updates from https://translatewiki.net.
Change-Id: I9a519432d6d8d818987818a6d7c07d1fdebe2f81
2017-03-27 22:56:37 +02:00
Brad Jorsch
f4a306fb18 Deprecate "Avoid page_touched update for HTTP GET action=purge requests"
This reverts most of commit c84ba4d864.
The changes made there are no longer needed, and nothing in Gerrit seems
to have started using them since they were added.

The added constants in WikiPage, WikiPage::getLastPurgeTimestamp(), and
Article::getLastPurgeTimestamp() are deprecated, useless, and unused,
but not removed yet since they snuck into 1.28 so we can't revert them
without a deprecation period. Sigh.

Bug: T145649
Change-Id: I526fd4e004bee84c831a4cee71e44e92ee73480b
2017-03-27 10:10:26 -04:00
Translation updater bot
8c0b8ebb58 Localisation updates from https://translatewiki.net.
Change-Id: I52bcb35ec9bae29b0adf6d745ad63706fd69e011
2017-03-26 21:56:00 +02:00
Translation updater bot
2c38d0c364 Localisation updates from https://translatewiki.net.
Change-Id: I52ddf38b7a669842ed8157f5929cf4519ff9a57a
2017-03-24 21:53:45 +01:00
Translation updater bot
82a0199bd8 Localisation updates from https://translatewiki.net.
Change-Id: I83074d7d6edd5cf2e3b69d0bb2382012a5b4e438
2017-03-22 22:02:54 +01:00
Translation updater bot
1f6811eac2 Localisation updates from https://translatewiki.net.
Change-Id: Iecc7b545f9858bef1789765e5abf010802638fd1
2017-03-21 22:01:20 +01:00
Reedy
454b199537 Disable filter by redirect Special:AllPages and query=allpages in miser mode
Bug: T160916
Change-Id: Ib9562b404731e1f621b9f07c33821d04cd2aa6ae
2017-03-20 19:15:59 +00:00
jenkins-bot
aa5eca02b3 Merge "Replace deprecated Context::getStats() with MWServices::getStatsdDataFactory()" 2017-03-20 09:32:48 +00:00
Translation updater bot
d8852217e2 Localisation updates from https://translatewiki.net.
Change-Id: I8909bf70bc12c12dd42e318e70987b0597760b67
2017-03-19 21:53:59 +01:00
Translation updater bot
16ee5a7756 Localisation updates from https://translatewiki.net.
Change-Id: Ibf1d7374533428a2024f5f252c6d91ecc866455d
2017-03-17 21:57:16 +01:00
WMDE-Fisch
7b5f08e703 Replace deprecated Context::getStats() with MWServices::getStatsdDataFactory()
Change-Id: I1756f69ca2ebd301a5049bf758d1a87c37771fe6
2017-03-17 12:07:03 +01:00
Translation updater bot
0b0297c653 Localisation updates from https://translatewiki.net.
Change-Id: I700258b10dc880529bb6f37c7a31b54b765310ef
2017-03-14 21:59:01 +01:00
Matthias Mullie
de36abea5f Allow filtering by username on Special:NewFiles
Meanwhile, also change ApiQueryAllImages to search by
user ID instead of username. This is also how ContribsPages,
LogPager, ... work already.

This will use the new index on img_user. The old index is still
around, but is likely not going to be used in practice (users
have to logged in to upload)

Do not merge until I4db7bd0f917a428f40eb315246f89d49c7ae5b6a has
been deployed.

Bug: T125071
Bug: T121865
Change-Id: Ida22555f00530f393e739366fa9e79ecabf3c0eb
2017-03-14 14:38:41 +00:00
Translation updater bot
dc35b44b20 Localisation updates from https://translatewiki.net.
Change-Id: I5d800846ef2aa196635559493dbc1b8acb3802b5
2017-03-12 21:59:32 +01:00