Merge "numRows on MySQL no longer propagates unrelated errors"
[lhc/web/wiklou.git] / RELEASE-NOTES-1.21
1 Security reminder: MediaWiki does not require PHP's register_globals. If you
2 have it on, turn it '''off''' if you can.
3
4 == MediaWiki 1.21 ==
5
6 THIS IS NOT A RELEASE YET
7
8 MediaWiki 1.21 is an alpha-quality branch and is not recommended for use in
9 production.
10
11 === Configuration changes in 1.21 ===
12 * (bug 29374) $wgVectorUseSimpleSearch is now enabled by default.
13 * Deprecated $wgAllowRealName is removed. Use $wgHiddenPrefs[] = 'realname'
14 instead.
15 * (bug 39957) Added $wgUnwatchedPageThreshold, specifying minimum count
16 of page watchers required for the number to be accessible to users
17 without the unwatchedpages permission.
18 * $wgBug34832TransitionalRollback has been removed.
19 * (bug 29472) $wgUseDynamicDates has been removed and its functionality
20 disabled.
21
22 === New features in 1.21 ===
23 * (bug 38110) Schema changes (adding or dropping tables, indices and
24 fields) can be now be done separately from from other changes that
25 update.php makes. This is useful in environments that use database
26 permissions to restrict schema changes but allow the DB user that
27 MediaWiki normally runs as to perform other changes that update.php
28 makes. Schema changes can be run separately. See the file UPGRADE
29 for more information.
30 * (bug 34876) jquery.makeCollapsible has been improved in performance.
31 * Added ContentHandler facility to allow extensions to support other content
32 than wikitext. See docs/contenthandler.txt for details.
33 * New feature was developed for showing high-DPI thumbnails for high-DPI mobile
34 and desktop displays (configurable with $wgResponsiveImages).
35 * Added new backend to represent and store information about sites and site
36 specific configuration.
37 * jQuery upgraded from 1.8.2 to 1.8.3.
38 * jQuery UI upgraded from 1.8.23 to 1.8.24.
39 * Added separate fa_sha1 field to filearchive table. This allows sha1
40 searches with the api in miser mode for deleted files.
41 * Add initial and programmatic sorting for tablesorter.
42 * Add the event "sortEnd.tablesorter", triggered after sorting has completed.
43 * The Job system was refactored to allow for different backing stores for
44 queues as well as cross-wiki access to queues, among other things. The schema
45 for the DB queue was changed to support better concurrency and reduce
46 deadlock errors.
47 * Added ApiQueryORM class to facilitate creation of query API modules based on
48 tables that have a corresponding ORMTable class.
49 * (bug 40876) Icon for PSD (Adobe Photoshop) file types.
50 * (bug 40641) Implemented Special:Version/Credits with a list of contributors.
51 * (bug 7851) Implemented one-click AJAX patrolling.
52 * The <data>, <time>, <meta>, and <link> elements are allowed within WikiText
53 for use with Microdata.
54 * The HTML5 <mark> tag has been whitelisted.
55 * Added ParserCloned hook for when the Parser object is cloned.
56 * Added AlternateEditPreview hook to allow extensions to replace the page
57 preview from the edit page.
58 * Added EditPage::showStandardInputs:options hook to allow extensions to add
59 new fields to the "editOptions" area of the edit form.
60 * Upload stash DB schema altered to improve upload performance.
61 * The following global functions are now reporting deprecated warnings in
62 debug mode: wfMsg, wfMsgNoTrans, wfMsgForContent, wfMsgForContentNoTrans,
63 wfMsgReal, wfMsgGetKey, wfMsgHtml, wfMsgWikiHtml, wfMsgExt, wfEmptyMsg. Use
64 the Message class, or the global method wfMessage.
65 * Added $wgEnableCanonicalServerLink, off by default. If enabled, a
66 <link rel=canonical> tag is added to every page indicating the correct server
67 to use.
68 * Debug message emitted by wfDebugLog() will now be prefixed with the group
69 name when its logged to the default log file. That is the case whenever the
70 group has no key in wgDebugLogGroups, that will help triage the default log.
71 * (bug 24620) Add types to LogFormatter.
72 * jQuery JSON upgraded from 2.3 to 2.4.0.
73 * Added GetDoubleUnderscoreIDs hook, for modifying the list of magic words.
74 * DatabaseUpdater class has two new methods to ease extensions schema changes:
75 dropExtensionIndex and renameExtensionIndex.
76 * New preference type - 'api'. Preferences of this type are not shown on
77 Special:Preferences, but are still available via the action=options API.
78 * (bug 39397) Hide rollback link if a user is the only contributor of the page.
79 * $wgPageInfoTransclusionLimit limits the list size of transcluded articles
80 on the info action. Default is 50.
81 * Added action=createaccount to allow user account creation.
82 * (bug 40124) action=options API also allows for setting of arbitrary
83 preferences, provided that their names are prefixed with 'userjs-'. This
84 officially reenables the feature that was undocumented and defective
85 in MW 1.20 (saving preferences using Special:Preferences cleared any
86 additional fields) and which has been disabled in 1.20.1 as a part of
87 a security fix (bug 42202).
88 * Added option to specify "others" as author in extension credits using
89 "..." as author name.
90 * Added the ability to limit the wall clock time used by shell processes,
91 as well as the CPU time. Configurable with $wgMaxShellWallClockTime.
92 * Allow memory of shell subprocesses to be limited using Linux cgroups
93 instead of ulimit -v, which tends to cause deadlocks in recent versions
94 of ImageMagick. Configurable with $wgShellCgroup.
95 * Added $wgWhitelistReadRegexp for regex whitelisting.
96 * (bug 5346) Categories that are redirects will be displayed italic in
97 the category links section at the bottom of a page.
98 * (bug 43915) New maintenance script deleteEqualMessages.php.
99 * You can now create checkbox option matrices through the HTMLCheckMatrix
100 subclass in HTMLForm.
101 * WikiText now permits the use of WAI-ARIA's role="presentation" inside of
102 html elements and tables. This allows presentational markup, especially
103 tables. To be marked up as such.
104 * maintenance/sql.php learned the --cluster option. Let you run the script
105 on some external cluster instead of the primary cluster for a given wiki.
106 * (bug 20281) test the parsing of inline URLs.
107 * Added Special:PagesWithProp, which lists pages using a particular page property.
108 * Implemented language-specific collations for category sorting for 67 languages
109 based in latin, greek and cyrillic alphabets. This allows one to *finally* get
110 articles to be correctly sorted on category pages. They are named
111 'uca-<langcode>', where <langcode> is one of: af, ast, az, be, bg, br, bs, ca,
112 co, cs, cy, da, de, dsb, el, en, eo, es, et, eu, fi, fo, fr, fur, fy, ga, gd,
113 gl, hr, hsb, hu, is, it, kk, kl, ku, ky, la, lb, lt, lv, mk, mo, mt, nl, no,
114 oc, pl, pt, rm, ro, ru, rup, sco, sk, sl, smn, sq, sr, sv, tk, tl, tr, tt, uk,
115 uz, vi.
116 * Added 'CategoryAfterPageAdded' and 'CategoryAfterPageRemoved' hooks.
117 * (bug 33186) Add image rotation api "imagerotate"
118 * (bug 34040) Add "User rights management" link on user page toolbox.
119
120 === Bug fixes in 1.21 ===
121 * (bug 40353) SpecialDoubleRedirect should support interwiki redirects.
122 * (bug 40352) fixDoubleRedirects.php should support interwiki redirects.
123 * (bug 9237) SpecialBrokenRedirect should not list interwiki redirects.
124 * (bug 34960) Drop unused fields rc_moved_to_ns and rc_moved_to_title from
125 recentchanges table.
126 * (bug 32951) Do not register internal externals with absolute protocol,
127 when server has relative protocol.
128 * (bug 39005) When purging proxies listed in $wgSquidServers using HTTP PURGE
129 method requests, we now send a Host header by default, for Varnish
130 compatibility. This also works with Squid in reverse-proxy mode. If you wish
131 to support Squid configured in forward-proxy mode, set
132 $wgSquidPurgeUseHostHeader to false.
133 * (bug 37020) sql.php with readline eats semicolon.
134 * (bug 11748) Properly handle optionally-closed HTML tags when Tidy is
135 disabled, and don't wrap HTML-syntax definition lists in paragraphs.
136 * (bug 41409) Diffs while editing an old revision should again diff against the
137 current revision.
138 * (bug 41494) Honor $wgLogExceptionBacktrace when logging non-API exceptions
139 caught during API execution.
140 * (bug 37963) Fixed loading process for user options.
141 * (bug 26995) Update filename field on Upload page after having sanitized it.
142 * (bug 41793) Contribution links to users with 0 edits on Special:ListUsers
143 didn't show up red.
144 * (bug 41899) A PHP notice no longer occurs when using the "rvcontinue" API
145 parameter.
146 * (bug 42036) Account creation emails now contain canonical (not
147 protocol-relative) URLs.
148 * (bug 41990) Fix regression: API edit with redirect=true and lacking
149 starttimestamp and basetimestamp should not cause an edit conflict.
150 * (bug 41706) EditPage: Preloaded page should be converted if possible and
151 needed.
152 * (bug 41886) Rowspans are no longer exploded by tablesorter until the table is
153 actually sorted.
154 * (bug 2865) User interface HTML elements don't use lang attribute.
155 (completed the fix by adding the lang attribute to firstHeading).
156 * (bug 42173) Removed namespace prefixes on Special:UncategorizedCategories.
157 * (bug 36053) Log in "returnto" feature forgets query parameters if no
158 title parameter was specified.
159 * (bug 42410) API action=edit now returns correct timestamp for the new edit.
160 * (bug 14901) Email notification mistakes log action for new page creation.
161 Enotif no longer sends "page has been created" notifications for some log
162 actions. The following events now have a correct message: page creation,
163 deletion, move, restore (undeletion), change (edit). Parameter
164 $CHANGEDORCREATED is deprecated in 'enotif_body' and scheduled for removal in
165 MediaWiki 1.23.
166 * (bug 457) In the sidebar of Vector, CologneBlue, Monobook, and Monobook-based
167 skins, the heading levels have been changed from (variously per skin)
168 <h4>, <h5> or <h6> to only <h3>s, with a <h2> hidden heading above them.
169 If you are styling or scripting the headings in a custom way, this change
170 will require updates to your site's CSS or JS.
171 * (bug 41342) jquery.suggestions should cancel any active (async) fetches
172 before it triggers another fetch.
173 * (bug 42184) $wgUploadSizeWarning missing second variable.
174 * (bug 34581) removeUnusedAccounts.php maintenance script now ignores newuser
175 log when determining whether an account is used.
176 * (bug 43379) Gracefully fail if rev_len is unavailable for a revision on the
177 History page.
178 * (bug 42949) API no longer assumes all exceptions are MWException.
179 * (bug 41733) Hide "New user message" (.usermessage) element from printable view.
180 * (bug 39062) Special:Contributions will display changes that don't have
181 a parent id instead of just an empty bullet item.
182 * (bug 37209) "LinkCache doesn't currently know about this title" error fixed.
183 * wfMerge() now works if $wgDiff3 contains spaces
184 * (bug 43052) mediawiki.action.view.dblClickEdit.dblClickEdit should trigger
185 ca-edit click instead opening URL directly.
186 * (bug 43964) Invalid value of "link" parameter in <gallery> no longer produces
187 a fatal error.
188 * (bug 44775) The username field is not pre-filled when creating an account.
189 * (bug 45069) wfParseUrl() no longer produces a PHP notice if passed a "mailto:"
190 URL without address
191 * (bug 45012) Creating an account by e-mail can no longer show a
192 "password mismatch" error.
193 * (bug 44599) On Special:Version, HEADs for submodule checkouts (e.g. for
194 extensions) performed using Git 1.7.8+ should now appear.
195 * (bug 42184) $wgUploadSizeWarning missing second variable
196 * (bug 40326) Check if files exist with a different extension during uploading
197 * (bug 34798) Updated CSS for Atom/RSS recent changes feeds to match on-wiki diffs.
198 * (bug 42430) Calling numRows on MySQL no longer propagates unrelated errors.
199
200 === API changes in 1.21 ===
201 * prop=revisions can now report the contentmodel and contentformat.
202 See docs/contenthandler.txt.
203 * action=edit and action=parse now support contentmodel and contentformat
204 parameters to control the interpretation of page content.
205 See docs/contenthandler.txt for details.
206 * (bug 35693) ApiQueryImageInfo now suppresses errors when unserializing metadata.
207 * (bug 40111) Disable minor edit for page/section creation by API.
208 * (bug 41042) Revert change to action=parse&page=... behavior when the page
209 does not exist.
210 * (bug 27202) Add timestamp sort to list=allimages.
211 * (bug 43137) Don't return the sha1 of revisions through the API if the content is
212 revision-deleted.
213 * ApiQueryImageInfo now also returns imageinfo for redirects.
214 * list=alltransclusions added to enumerate every instance of page embedding
215 * list=alllinks & alltransclusions now allow both 'from' and 'continue' in
216 the same query. When both are present, 'from' is simply ignored.
217 * list=alllinks & alltransclusions now allow 'unique' in generators, to yield
218 a list of all link/template target pages instead of source pages.
219 * BREAKING CHANGE: list=logevents output format changed for details of some log
220 types. Specifically, details that were formerly reported under a key like
221 "4::foo" will now be reported under a key of simply "foo".
222 * BREAKING CHANGE: '??_badcontinue' error code was changed to '??badcontinue'
223 for all query modules.
224 * ApiQueryBase adds 'badcontinue' error code if module has 'continue' parameter.
225 * (bug 35885) Removed version parameter and all getVersion() methods.
226 * action=options now takes a "resetkinds" option, which allows only resetting
227 certain types of preferences when the "reset" option is set.
228 * (bug 36751) ApiQueryImageInfo now returns imageinfo for the redirect target
229 when queried with &redirects=.
230 * (bug 31849) ApiQueryImageInfo no longer gets confused when asked for info on
231 a redirect and its target.
232 * (bug 43849) ApiQueryImageInfo no longer throws exceptions with ForeignDBRepo
233 redirects.
234 * On error, any warnings generated before that error will be shown in the result.
235 * action=help supports generalized submodules (modules=query+value), querymodules obsolete
236 * ApiQueryImageInfo continuation is more reliable. The only major change is
237 that the imagerepository property will no longer be set on page objects not
238 processed in the current query (i.e. non-images or those skipped due to
239 iicontinue).
240 * Add supports for all pageset capabilities - generators, redirects, converttitles to
241 action=purge and action=setnotificationtimestamp.
242 * (bug 43251) prop=pageprops&ppprop= now accepts multiple props to query.
243 * ApiQueryImageInfo will now limit the number of calls to File::transform made
244 in any one query. If there are too many, iicontinue will be returned.
245 * action=query&meta=siteinfo&siprop=general will now return the regexes used for
246 link trails and link prefixes. Added for Parsoid support.
247 * Added an API query module list=pageswithprop, which lists pages using a
248 particular page property.
249 * Added an API query module list=pagepropnames, which lists all page prop names
250 currently in use on the wiki.
251 * (bug 44921) ApiMain::execute() will now return after the CORS check for an
252 HTTP OPTIONS request.
253 * (bug 44923) action=upload works correctly if the entire file is uploaded in
254 the first chunk.
255 * Added 'continue=' parameter to streamline client iteration over complex query results
256 * (bug 44909) API parameters may now be marked as type "upload", which is now
257 used for action=upload's 'file' and 'chunk' parameters. This type will raise
258 an error during parameter validation if the parameter is given but not
259 recognized as an uploaded file.
260 * (bug 44244) prop=info may now return the number of people watching each page.
261 * (bug 33304) list=allpages will no longer return duplicate entries when
262 querying protection.
263 * (bug 33304) list=allpages will now find really old indefinite protections.
264
265 === API internal changes in 1.21 ===
266 * For debugging only, a new global $wgDebugAPI removes many API restrictions when true.
267 Never use on the production servers, as this flag introduces security holes.
268 Whenever enabled, a warning will also be added to all output.
269 * ApiModuleManager now handles all submodules (actions,props,lists) and instantiation
270 * Query stores prop/list/meta as submodules
271 * ApiPageSet can now be used in any action to process titles/pageids/revids or any generator.
272 * BREAKING CHANGE: ApiPageSet constructor now has two params instead of three, with only the
273 first one keeping its meaning. ApiPageSet is now derived from ApiBase.
274 * BREAKING CHANGE: ApiQuery::newGenerator() and executeGeneratorModule() were deleted.
275 * ApiQueryGeneratorBase::setGeneratorMode() now requires a pageset param.
276 * $wgAPIGeneratorModules is now obsolete and will be ignored.
277 * Added flags ApiResult::OVERRIDE and ADD_ON_TOP to setElement() and addValue()
278 * Internal API calls will now include <warnings> in case of unused parameters
279
280 === Languages updated in 1.21 ===
281
282 MediaWiki supports over 350 languages. Many localisations are updated
283 regularly. Below only new and removed languages are listed, as well as
284 changes to languages because of Bugzilla reports.
285
286 * South Azerbaijani (azb) added.
287 * (bug 30040) Autonym for nds-nl is now 'Nedersaksies' (was 'Nedersaksisch').
288 * (bug 34977) Now formatted numbers in Spanish use space as separator
289 for thousands, as mandated by the Real Academia EspaƱola.
290 * (bug 35031) Kurdish formatted numbers now use period and comma
291 as separators for thousands and decimals respectively.
292
293 === Other changes in 1.21 ===
294 * BREAKING CHANGE: (bug 44385) Removed the jquery.collapsibleTabs module and
295 moved it to the Vector extension. It was entirely Vector-extension-specific,
296 deeply interconnected with the extension, and this functionality really
297 belongs to the extension instead of the skin anyway. In the unlikely case you
298 were using it, you have to either copy it to your extension, or install the
299 Vector extension (and possibly disable its features using config settings if
300 you don't want them).
301 * Experimental IBM DB2 support was removed due to lack of interest and maintainership
302 * BREAKING CHANGE: Filenames of maintenance scripts were standardized into
303 lowerCamelCase format, and made more explicit:
304 - clear_stats.php -> clearCacheStats.php
305 - clear_interwiki_cache.php -> clearInterwikiCache.php
306 - initStats.php -> initSiteStats.php
307 - proxy_check.php -> proxyCheck.php
308 - stats.php -> showCacheStats.php
309 - showStats.php -> showSiteStats.php.
310 Class names were renamed accordingly:
311 - clear_stats -> ClearCacheStats
312 - InitStats -> InitSiteStats
313 - CacheStats -> ShowCacheStats
314 - ShowStats -> ShowSiteStats.
315 * BREAKING CHANGE: (bug 38244) Removed the mediawiki.api.titleblacklist module
316 and moved it to the TitleBlacklist extension.
317
318 == Compatibility ==
319
320 MediaWiki 1.21 requires PHP 5.3.2 or later.
321
322 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
323 support for them is somewhat less mature. There is experimental support for
324 Oracle.
325
326 The supported versions are:
327
328 * MySQL 5.0.2 or later
329 * PostgreSQL 8.3 or later
330 * SQLite 3.3.7 or later
331 * Oracle 9.0.1 or later
332
333 == Upgrading ==
334
335 1.21 has several database changes since 1.20, and will not work without schema
336 updates. Note that due to changes to some very large tables like the revision
337 table, the schema update may take quite long (minutes on a medium sized site,
338 many hours on a large site).
339
340 If upgrading from before 1.11, and you are using a wiki as a commons
341 repository, make sure that it is updated as well. Otherwise, errors may arise
342 due to database schema changes.
343
344 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
345 new database fields are filled with data.
346
347 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
348 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
349 with MediaWiki 1.21.
350
351 Don't forget to always back up your database before upgrading!
352
353 See the file UPGRADE for more detailed upgrade instructions.
354
355 For notes on 1.19.x and older releases, see HISTORY.
356
357 == Online documentation ==
358
359 Documentation for both end-users and site administrators is available on
360 MediaWiki.org, and is covered under the GNU Free Documentation License (except
361 for pages that explicitly state that their contents are in the public domain):
362
363 https://www.mediawiki.org/wiki/Documentation
364
365 == Mailing list ==
366
367 A mailing list is available for MediaWiki user support and discussion:
368
369 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
370
371 A low-traffic announcements-only list is also available:
372
373 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
374
375 It's highly recommended that you sign up for one of these lists if you're
376 going to run a public MediaWiki, so you can be notified of security fixes.
377
378 == IRC help ==
379
380 There's usually someone online in #mediawiki on irc.freenode.net.