Commit graph

48843 commits

Author SHA1 Message Date
Brian Wolff
2ca33d1ce7 Make concurrent runs of FileBackendTest independent
Make each run of the FileBackendTest be for a different "wiki"
so you could have multiple runs at the same time without them
interfering with each other.

There's been intermittent failures on jenkins for this test. I'm
not sure if its some race condition (which wouldn't really make
sense given each run should be independent I thought), but this
can't hurt.

Change-Id: I3b639f1c783efc140028c3acdce35ef3f58bf66f
2013-04-17 16:20:48 -03:00
Aaron Schulz
dd6f294ad7 Merge "Set up the profiler in CLI mode." 2013-04-17 17:58:57 +00:00
Aaron Schulz
1e69f83f74 Merge "[FileBackend] Simplified the shard list iterator to use AppendIterator and FilterIterator." 2013-04-17 17:58:30 +00:00
Aaron Schulz
474f390882 Merge "Reduced DB contention in User::saveOptions()." 2013-04-17 17:58:03 +00:00
Aaron Schulz
f6ccaed0f9 Merge "Small doc fix to JobQueueRedis." 2013-04-17 17:35:25 +00:00
jenkins-bot
40b156ba89 Merge "Set 'skin' template parameter rather than override parent method" 2013-04-17 17:11:17 +00:00
Aaron Schulz
dcc69671e0 [FileBackend] Simplified the shard list iterator to use AppendIterator and FilterIterator.
Change-Id: I22f79447b1edec4fa6d7fc06d67f3f831a484f16
2013-04-17 17:06:52 +00:00
Aaron Schulz
dc0fae6f6a Reduced DB contention in User::saveOptions().
Change-Id: Ic91501cd6476dae54b54b85f2f06c25bd2577c9b
2013-04-17 17:05:55 +00:00
Aaron Schulz
aca9223139 Small doc fix to JobQueueRedis.
Change-Id: I217b3642c67338f7d45995d81e5e18887242479a
2013-04-17 17:05:37 +00:00
Aaron Schulz
820de0f13b Set up the profiler in CLI mode.
Change-Id: I7f36786573870b66b4f1e93c2fc2e444f1ae1252
2013-04-17 10:05:00 -07:00
Kevin Israel
4b520e95c3 Move release notes from 1.21 to 1.22
Several change sets that added entries to RELEASE-NOTES-1.21 were
actually submitted after the REL1_21 branch point. Those change
sets that are unlikely to be backported to 1.21 (i.e. not yet
backported) are listed here.

* I0f2d81dd (bug 23393) (bug 45803)
* I226349aa
* I3faa9c3e (bug 23343)
* I6e7f4cf6
* I719d84c5
* I97b04673
* Ia98f54f4
* Idab489fc (bug 25325)
* Ifaf40c66 (bug 46680)

This patch moves the release notes to the RELEASE-NOTES-1.22 file.

Change-Id: I6a51e3ee07fe7622b9c708c78563795d7a1118fc
2013-04-17 14:25:19 +00:00
Siebrand Mazeland
ac48a4fece Rebuild MessagesEn.php
php maintenance\language\rebuildLanguage.php --lang=en

Change-Id: I6a51f75b393e7c85b93a79bc1f09c57ad7e79f93
2013-04-17 11:11:38 +02:00
Liangent
c5c66d5c15 Clean up old way to disable variants (using a special name 'disable')
$wgDisabledVariants is the preferred setting now since 1.16. For some
reason, the 'disable' magic name hasn't been cleaned up completely and
only affects skinning.

Someone may want to run rebuildLanguage.php later because messages.inc
is modified here. I didn't run it because it introduces too many
unrelated edits messing up this patch.

Change-Id: Ifb005e7cc9efd0b4a4f87fd491a71c8d5e1a5748
2013-04-17 08:19:17 +00:00
Ori Livneh
8408295b72 Set 'skin' template parameter rather than override parent method
BaseTemplate's getSkin() method is perfectly adequate if you simply set a
skin value where it expects it. Doing so obviates the need to reimplement
getSkin() in UserloginTemplateVForm and UsercreateTemplateVForm.

Change-Id: Icd22de2218fc96cb67c11d0c1763b607743fe3b6
2013-04-17 06:13:56 +00:00
Chad Horohoe
479363ce92 Support HTTP timeout detection in curl backend
We already do this for the pure-PHP backend, and it's easy to
catch this single error and pass a more specific message

Change-Id: I8a81dd90b691c35c51a19f8790f06578dd067613
2013-04-16 23:11:54 +00:00
Translation updater bot
50de47681c Localisation updates from http://translatewiki.net.
Change-Id: Ibba6af6cc653791657989c97d74ed2a6a4c25014
2013-04-16 19:19:33 +00:00
Aaron Schulz
9906460241 Use onTransactionIdle() for page invalidations when not using the job queue.
* This will do the page_touched UPDATE in autocommit mode to avoid
  locking a bunch of titles for some unknown amount of time that
  depends on how big the transaction is.

Change-Id: I6ec16a73c11fbf19c24d2b7fe7d01f91b9dcf33a
2013-04-16 10:16:10 -07:00
Aaron Schulz
d4043766c0 Some tweaks to the database commit callback docs.
Change-Id: Ifc1687f5393046d000a49aa7850c6454d03154b8
2013-04-16 00:30:30 -07:00
Aaron Schulz
3082af5472 Account for $wgSquidMaxage in OutputPage::checkLastModified().
* This deals with the fact that seldom edited pages can end up cached
  with very stale resource (JS/CSS) references since the response to
  IMS GET requests will be 304 Not Modified if page_touched is ancient.
  When squid revalidates its stale cache it will keep getting 304s and
  renewing the TTL on the stale cache.

Bug: 44570
Change-Id: I3889f300012aeabd37e228653279ad19b296e4ae
2013-04-16 06:53:10 +00:00
jenkins-bot
562acce759 Merge "Cleanup and performance tweaks for BacklinkCache." 2013-04-16 06:50:19 +00:00
Aaron Schulz
c3e39d2b6d Pushed updateCategoryCounts() to transaction end to reduce contention.
* This can really be a problem if locks are held during file related operations.

Change-Id: I00107ffc9951915d3af6002b258b3dae2de5fa92
2013-04-15 22:35:39 -07:00
Aaron Schulz
75b16dfb5f [Database] Added onTransactionPreCommitOrIdle() function.
* Also fixed case where onTransactionIdle() could start uncommitted
  transactions if there was no transanction and DBO_TRX was set.

Change-Id: I0bf6171fac692cf3d6e04011321bed075f58724b
2013-04-16 02:41:21 +00:00
jenkins-bot
1e8a9aba9c Merge "Set Agora font stack to mw-ui-container in Vector" 2013-04-15 22:24:36 +00:00
Translation updater bot
c182f9643b Merge "Localisation updates from http://translatewiki.net." 2013-04-15 21:11:56 +00:00
csteipp
a56c6ccf28 Merge "Disable external entities in Import" 2013-04-15 20:56:14 +00:00
jenkins-bot
ac143930cc Merge "Add git HEAD date to Special:Version for core and extensions" 2013-04-15 20:55:10 +00:00
csteipp
c616b5c1bb Merge "Disable external entities in XMLReader" 2013-04-15 20:55:07 +00:00
csteipp
cce9543d37 Merge "Sanitize $limitReport before outputting" 2013-04-15 20:54:19 +00:00
csteipp
77a8d57691 Disable external entities in Import
Temporarily disable loading entities in XMLReader when calling read()
during import.

bug: 47251

Change-Id: I0b39386e6cf4ec0244aab8ebc4095922511e2964
2013-04-15 13:52:49 -07:00
csteipp
1ed76385c3 Disable external entities in XMLReader
Temporarily disable loading entities in XMLReader when calling read()
with libxml_disable_entity_loader(true).

bug: 46859

Change-Id: I0b2ef270f15c7b4da17edee680bf7e2410919915
2013-04-15 13:49:45 -07:00
csteipp
69f96f65dd Sanitize $limitReport before outputting
Prevents possible injection of "-->" and other HTML by extensions using
the ParserLimitReport hook.

bug: 46084
Change-Id: Id97b6668da6df3e5e4c0acefffa00c82cac3c44a
2013-04-15 13:48:15 -07:00
DaSch
e9e24cbfe7 Add git HEAD date to Special:Version for core and extensions
The patch adds the localised commit date of i) core and ii) extensions
in the Special:Version page tables. It requires the Git version control
system being installed, which is checked during the installation.

Introduces a new parameter for the git binary in DefaultSettings.php:
$wgGitBin = '/usr/bin/git';

Patch authored by DaSch <dasch@daschmedia.de> and updated and fixed
by Wikinaut<mail@tgries.de>.

Bug: 38783
Change-Id: I0931400ecacf91ed2ab4fc7aa46dceac17661768
2013-04-15 20:47:15 +00:00
Translation updater bot
ddb2423f51 Localisation updates from http://translatewiki.net.
Change-Id: Ie18fd3023c90008b80d8bf3eb888dce4d872fd90
2013-04-15 20:43:19 +00:00
Translation updater bot
4141e88317 Merge "Localisation updates from http://translatewiki.net." 2013-04-15 20:28:38 +00:00
Brion VIBBER
defd78e9ca Merge "Moved JobQueueDB::recycleAndDeleteStaleJobs() function below overriden ones." 2013-04-15 18:15:41 +00:00
jenkins-bot
fd03fc043c Merge "(bug 42607) $.tablesorter: require separators when detecting dates" 2013-04-15 17:09:43 +00:00
GWicke
853f21b42e Merge "5 new tests (3 Parsoid serializer, 2 parser) & fixed 4 tests." 2013-04-15 16:46:32 +00:00
Tobias Gritschacher
978c8d9b5f Get rid of wfScript in MediaWikiSite::normalizePageName
wfScript should not be used to construct URLs for calls to other wikis

Bug: 47242
Change-Id: Id5aaa58f10d513e082b217aeb8d88b8228341a48
2013-04-15 11:50:07 +02:00
Aaron Schulz
6d44eb2bab Removed old cache update b/c code from 2007.
Change-Id: Ia19062cb48f7748501c061544b2949bf3beaba4d
2013-04-15 00:08:14 +00:00
jenkins-bot
741637f3dd Merge "Fixed incorrect parameter passed to LoginForm::userBlockedMessage()" 2013-04-14 22:04:25 +00:00
jenkins-bot
a56052b07b Merge "Added spaces before and removed spaces after 'array'" 2013-04-14 22:01:51 +00:00
Alexandre Emsenhuber
42c8f3f21f Fixed incorrect parameter passed to LoginForm::userBlockedMessage()
The error is Catchable fatal error: Argument 1 passed to
LoginForm::userBlockedMessage() must be an instance of Block, null given.

The problem is that User::$mBlock is not always the correct block, when
checking that a blocked logged-in user can create an account.

bug: 47138
Change-Id: I43f35cfa342737f05a08a693a86949c14348321f
2013-04-14 22:43:58 +02:00
umherirrender
97234cc884 Added spaces before and removed spaces after 'array'
Fix some other spacing while at it

Change-Id: I13f81533eaf40e06c13cf377c0f08ef5cef01d00
2013-04-14 21:57:46 +02:00
jenkins-bot
a6b1613816 Merge "Use a provider for Xff blocking tests" 2013-04-14 19:49:05 +00:00
Siebrand Mazeland
b84a680a32 Update/add documentation
Change-Id: I897d5833cdaf7dc2d3bca5bb5551958611f22bd9
2013-04-14 21:18:38 +02:00
csteipp
c38f71a3e7 Use a provider for Xff blocking tests
Move the block insertion to addDBData(), and use a provider to
itterate through the test strings.

This seems like the more correct way to run these tests, although it
still seems hacky, since the db isn't cleaned up after each test.

Change-Id: Ib22ce69797ec03a61b0cc330e8572865290ebd31
2013-04-14 17:08:01 +00:00
jenkins-bot
467c28ec57 Merge "Added/Removed spaces around string concatenation" 2013-04-14 08:41:20 +00:00
Translation updater bot
846fe5b4b8 Localisation updates from http://translatewiki.net.
Change-Id: I019d72ecef04cd1851c951d76818afb81ae3f763
2013-04-13 20:31:14 +00:00
jenkins-bot
c1a949d864 Merge "JSHint: Re-order jshintrc options to split common from project settings" 2013-04-13 19:14:19 +00:00
umherirrender
15abcf71ca Added/Removed spaces around string concatenation
And added/removed spaces around some other tokens,
like +, -, *, /, <, >, =, !

Fixed windows newline style

Change-Id: I0b9c8c408f3f6bfc0d685a074d7ec468fb848fc8
2013-04-13 13:36:24 +02:00