Merge "Pass the 'returntoquery' parameter on cookie check."
[lhc/web/wiklou.git] / RELEASE-NOTES-1.20
1 = MediaWiki release notes =
2
3 Security reminder: MediaWiki does not require PHP's register_globals
4 setting since version 1.2.0. If you have it on, turn it '''off''' if you can.
5
6 == MediaWiki 1.20 ==
7
8 THIS IS NOT A RELEASE YET
9
10 MediaWiki 1.20 is an alpha-quality branch and is not recommended for use in
11 production.
12
13 === PHP 5.3 now required ===
14 Since 1.20, the lowest supported version of PHP is now 5.3.2. Please
15 upgrade PHP if you have not done so prior to upgrading MediaWiki.
16
17 === Configuration changes in 1.20 ===
18 * $wgGitRepositoryViewers defines a mapping from Git remote repository to the
19 Gitweb instance URL used in Special:Version.
20 * `$wgUsePathInfo = true;` is no longer needed to make $wgArticlePath work on servers
21 using like nginx, lighttpd, and apache over fastcgi. MediaWiki now always extracts
22 path info from REQUEST_URI if it's available.
23 * The user right 'upload_by_url' is no longer given to sysops by default.
24 This only affects installations which have $wgAllowCopyUploads set to true.
25 * Removed f-prot support from $wgAntivirusSetup.
26 * $wgDBerrorLogInUTC to log error in $wgDBerrorLog using an UTC date instead
27 of the wiki timezone set by $wgLocalTimezone.
28
29 === New features in 1.20 ===
30 * Added TitleIsAlwaysKnown hook which gets called when determining if a page exists.
31 * Added NamespaceIsMovable hook which gets called when determining if pages in a
32 certain namespace can be moved.
33 * Added SpecialPageBeforeExecute hook which gets called before SpecialPage::execute.
34 * Added SpecialPageAfterExecute hook which gets called after SpecialPage::execute.
35 * Added ORMTable, ORMRow and ORMResult classes for additional abstraction of
36 database interaction.
37 * Added CacheHelper and associated SpecialCachedPage and CachedAction helper classes.
38 * (bug 32341) Add upload by URL domain limitation.
39 * &useskin=default will now always display the default skin. Useful for users with a
40 preference for the non-default skin to look at something using the default skin.
41 * (bug 27619) Remove preference option to display broken links as link?
42 * (bug 34896) Update jQuery JSON plugin to v2.3 (2011-09-17).
43 * (bug 34302) Add CSS classes to email fields in user preferences.
44 * Introduced $wgDebugDBTransactions to trace transaction status (currently PostgreSQL only).
45 * (bug 23795) Add parser itself to ParserMakeImageParams hook.
46 * Introduce a cryptographic random number generator source api for use when
47 generating various tokens.
48 * (bug 30963) Option on Special:Prefixindex and Special:Allpages to not show redirects.
49 * (bug 18062) New message when edit or create the local page of a shared file.
50 * (bug 22870) Separate interface message when creating a page.
51 * (bug 17615) nosummary option should be reassigned on preview/captcha.
52 * (bug 34355) Add a variable and parser function for the namespace number.
53 * (bug 35649) Special:Version now shows hashes of extensions checked out from git.
54 * (bug 35728) Git revisions are now linked on Special:Version.
55 * "Show Changes" on default messages shows now diff against default message text
56 * (bug 23006) create #speciale parser function.
57 * generateSitemap can now optionally skip redirect pages.
58 * (bug 27757) New API command just for retrieving tokens (not page-based).
59 * Added GitViewers hook for extensions using external git repositories to have a web-based
60 repository viewer linked to from Special:Version.
61 * Memcached debug logs can now be sent to their own file logs by setting
62 $wgDebugLogFile['memcached'] to some filepath.
63 * (bug 35685) api.php URL and other entry point URLs are now listed on
64 Special:Version
65 * Edit notices can now be translated.
66 * (bug 35680) jQuery upgraded to 1.7.2.
67 * jQuery UI upgraded to 1.8.22.
68 * (bug 35705) QUnit upgraded from v1.2.0 to v1.8.0.
69 * (bug 37604) jquery.cookie upgraded to 2011 version.
70 * (bug 22887) Add warning and tracking category for preprocessor errors
71 * (bug 31704) Allow selection of associated namespace on the watchlist
72 * (bug 5445) Now remove autoblocks when a user is unblocked.
73 * Added $wgLogExceptionBacktrace, on by default, to allow logging of exception
74 backtraces.
75 * Added device detection for determining device capabilities.
76 * QUnit.newMwEnvironment now supports passing a custom setup and/or teardown function.
77 Arguments signature has changed. First arguments is now an options object of which
78 'config' can be a property. Previously 'config' itself was the first and only argument.
79 * New getCreator and getOldestRevision methods added to WikiPage class
80 * (bug 4220) the XML dump format schema now have unique identity constraints
81 for page and revision identifiers. Patch by Elvis Stansvik.
82 * cleanupSpam.php now can delete spam pages if --delete was specified instead of blanking
83 them.
84 * Added new hook ChangePasswordForm to allow adding of additional fields in Special:ChangePassword
85 * Added new function getDomain to AuthPlugin for getting a user's domain
86 * (bug 23427) New magic word {{PAGEID}} which gives the current page ID.
87 Will be null on previewing a page being created.
88 * (bug 37627) UserNotLoggedIn() exception to show a generic error page whenever
89 a user is not logged in.
90 * Watched status in changes lists are no longer indicated by <strong></strong>
91 tags with class "mw-watched". Instead, each line now has a class
92 "mw-changeslist-line-watched" or "mw-changeslist-line-not-watched", and the
93 title itself is surrounded by <span></span> tags with class "mw-title".
94 * Added ContribsPager::reallyDoQuery hook allowing extensions to data to MyContribs
95 * Added new hook ParserAfterParse to allow extensions to affect parsed output
96 after the parse is complete but before block level processing, link holder
97 replacement, and so on.
98 * (bug 34678) Added InternalParseBeforeSanitize hook which gets called during Parser's
99 internalParse method just before the parser removes unwanted/dangerous HTML tags.
100 * (bug 36783) Implement jQuery Promise interface in mediawiki.api module.
101 * Make dates in sortable tables sort according to the page content language
102 instead of the site content language
103 * (bug 37926) Deleterevision will no longer allow users to delete log entries,
104 the new deletelogentry permission is required for this.
105 * (bug 14237) Allow PAGESINCATEGORY to distinguish between 'all', 'pages', 'files'
106 and 'subcats'
107 * (bug 38362) Make Special:Listuser includeable on wiki pages.
108 * Added support in jquery.localize for placeholder attributes.
109 * (bug 38151) Implemented mw.user.getRights for getting and caching the current
110 user's user rights.
111 * Session storage can now configured independently of general object cache
112 storage, by using $wgSessionCacheType. $wgSessionsInMemcached has been
113 renamed to $wgSessionsInObjectCache, with the old name retained for backwards
114 compatibility.
115 * Implemented mw.user.getGroups for getting and caching user groups.
116 * (bug 37830) Added $wgRequirePasswordforEmailChange to control whether password
117 confirmation is required for changing an email address or not.
118 * HTMLForm mutators can now be chained (they return $this)
119 * A new message, "api-error-filetype-banned-type", is available for formatting
120 API upload errors due to the file extension blacklist.
121
122 === Bug fixes in 1.20 ===
123 * (bug 30245) Use the correct way to construct a log page title.
124 * (bug 34237) Regenerate an empty user_token and save to the database
125 when we try to set the user's cookies for login.
126 * (bug 32210) New edit emails for watched pages always provide a link to the
127 edit which triggered the mail.
128 * (bug 12021) Added user talk link on Special:Listusers.
129 * (bug 34445) section edit and TOC hide/show links are excluded from selection and
130 copy/paste on supporting browsers.
131 * (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob
132 history compression method.
133 * (bug 34702) Localised parentheses are now used in more special pages.
134 * (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR.
135 * (bug 34762) Calling close() on a DatabaseBase object now clears the connection.
136 * (bug 34863) Show deletion log extract on non-existent file pages if applicable.
137 * (bug 28019) Let ?preloadtitle=foo be passed on to target of
138 Special:MyPage and Special:MyTalk.
139 * (bug 34929) Show the correct diff when a section edit is rejected by the spam
140 filter.
141 * (bug 15816) Add a switch for SETting the search_path (Postgres).
142 * (bug 34521) Returning to the previous page after logging in loses any array-
143 valued parameters in the query string.
144 * (bug 34735) Updated compressOld.php documentation to mention the different
145 usages of -s and -n parameters depending on compression type.
146 * (bug 13896) Rendering of devanagari numbers in automatic '#' number lists.
147 * (bug 33689) Upgrade to 1.19 on Postgres fails due to incomplete query when.
148 trying to defer foreign key for externallinks.
149 * (bug 32748) Printer friendly version of article decode Unicode chars as a
150 pretty IRI in footer.
151 * Removed white border around thumbnails in galleries.
152 * (bug 31236) "Next" and "Previous" buttons are shown incorrectly in
153 an RTL environment.
154 * (bug 35749) Updated maintenance/checkSyntax.php to use Git instead of
155 Subversion when invoked with the --modified option.
156 * (bug 35069) On history pages, the " . . " separator after the number of
157 characters changed in a revision is now suppressed if no text would follow.
158 * (bug 18704) Add a unique CSS class or ID to the tagfilter table row at RecentChanges
159 * (bug 33564) transwiki import sometimes result in invalid title.
160 * (bug 35572) Blocks appear to succeed even if query fails due to wrong DB structure
161 * (bug 31757) Add a word-separator between help-messages in HTMLForm
162 * (bug 30410) Removed deprecated $wgFilterCallback and the 'filtered' API error.
163 * (bug 32604) Some messages needs escaping of wikitext inside username.
164 * (bug 36537) Rename wfArrayToCGI to wfArrayToCgi for consistency with wfCgiToArray.
165 * (bug 25946) The message on the top of Special:RecentChanges is now displayed.
166 in user language instead of content language.
167 * (bug 35264) Wrong type used for <ns> in export.xsd
168 * (bug 24985) Use $wgTmpDirectory as the default temp directory so that people
169 who don't have access to /tmp can specify an alternative.
170 * (bug 27283) SqlBagOStuff breaks PostgreSQL transactions.
171 * (bug 35727) mw.Api ajax() should put token parameter last.
172 * (bug 37708) mw.Uri.clone() should make a deep copy.
173 * (bug 38024) ResourceLoader should not create empty stylesheets for modules
174 that don't have stylesheets.
175 * (bug 36812) Special:ActiveUsers "Hide bots" should hide users from any group
176 having the "bot" user right, instead of just the default "bot" user group.
177 * (bug 35082) mw.util.addPortletLink incorrectly adds link to mutiple <ul> tags.
178 * (bug 36495) Sanitizer::fixDeprecatedAttributes should convert "align"
179 attribute to margin or float instead of text-align (for non-table-cells).
180 * (bug 36991) jquery.tablesorter should extract date sort format from date
181 string instead of global config. Dates like "April 1 2012" and "1 April 2012"
182 now sort correctly regardless of the content language's DefaultDateFormat.
183 * (bug 31895) mw.loader mode now correct when triggered from a $.fn.ready
184 handler that is bound before mediawiki.js's handler (e.g. browser-userscripts
185 like greasemonkey).
186 * (bug 38152) jquery.tablesorter: Use .data() instead of .attr(), so that live
187 values are used instead of just the fixed values from when the tablesorter
188 was initialized.
189 * (bug 38093) Gender of changed user groups missing in Special:Log/rights
190 * (bug 35893) Special:Block needs to load mediawiki.special.block.js.
191 * (bug 37331) ResourceLoader modules sometimes execute twice in Firefox
192 * (bug 31644) GlobalUsage, CentralAuth and AbuseLog extensions should not use
193 insecure links to foreign wikis in the WikiMap.
194 * (bug 36073) Avoid duplicate element IDs on File pages
195 * (bug 25095) Special:Categories should also include the first relevant item
196 when "from" is filled.
197 * (bug 35526) jquery.tablesorter now uses a stable sort.
198 * (bug 38953) --memory-limit switch not working for runJobs.php.
199 * (bug 33037) Make subpage of Special:newfiles control how many files
200 are returned, like in previous versions.
201
202 === API changes in 1.20 ===
203 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
204 * (bug 34313) MediaWiki API intro message about "HTML format" should mention
205 the format parameter.
206 * (bug 32384) Allow descending order for list=watchlistraw.
207 * (bug 31883) Limit of bkusers of list=blocks and titles of action=query is not documented in API help.
208 * (bug 32492) API now allows editing using pageid.
209 * (bug 32497) API now allows changing of protection level using pageid.
210 * (bug 32498) API now allows comparing pages using pageids.
211 * (bug 30975) API import of pages with invalid characters in this wiki leads to Fatal Error.
212 * (bug 30488) API now allows listing of backlinks/embeddedin/imageusage per pageid.
213 * (bug 34927) Output media_type for list=filearchive.
214 * (bug 28814) add properties to output of action=parse.
215 * (bug 33224) add variants of content language to meta=siteinfo.
216 * (bug 36761) "Mark pages as visited" now submits previously established filter options.
217 * (bug 32643) action=purge with forcelinkupdate no longer crashes when ratelimit is reached.
218 * The paraminfo module now also contains result properties for most modules.
219 * (bug 32348) Allow descending order for list=alllinks.
220 * (bug 31777) Upload unknown error ``fileexists-forbidden''.
221 * (bug 32382) Allow descending order for list=iwbacklinks.
222 * (bug 32381) Allow descending order for list=backlinks, list=embeddedin and list=imageusage.
223 * (bug 32383) Allow descending order for list=langbacklinks.
224 * API meta=siteinfo can now return the list of known variable IDs.
225 * (bug 35980) list=deletedrevs now honors drdir correctly in "all" mode (mode #3).
226 * (bug 29290) API avoids mangling fields in continuation parameters
227 * (bug 36987) API avoids mangling fields in continuation parameters
228 * (bug 30836) siteinfo prop=specialpagealiases will no longer return nonexistent special pages
229 * (bug 38190) Add "required" flag to some token params for hint in api docs.
230 * (bug 27567) Add file repo support to prop=duplicatefiles.
231 * (bug 27610) Add archivename for non-latest image version to list=filearchive
232 * (bug 38231) Add xml parse tree to action=parse.
233 * Watchlist notification timestamp may be queried by page and may be updated via the API.
234 * (bug 38904) prop=revisions&rvstart=... no longer blows up when continuing.
235 * (bug 39032) ApiQuery generates help in constructor.
236 * (bug 11142) Improve file extension blacklist error reporting in API upload
237
238 === Languages updated in 1.20 ===
239
240 MediaWiki supports over 350 languages. Many localisations are updated
241 regularly. Below only new and removed languages are listed, as well as
242 changes to languages because of Bugzilla reports.
243
244 * Emilian (egl) added.
245 * Tornedalen Finnish (fit) added.
246 * Mizo (lus) added.
247 * Santali (sat) added.
248 * (bug 34192) Namespace gender aliases for Albanian languages (sq & aln).
249 * (bug 35541) Namespace gender aliases for Croatian (hr).
250 * (bug 36012) Space in $separatorTransformTable should be non-breaking in
251 Portuguese, Esperanto and Udmurt.
252 * Turoyo (tru) added.
253 * Cyrillic-Latin language converter added for Uzbek (uz).
254
255 === Other changes in 1.20 ===
256 * The user_token field is now left empty until a user attempts to login and
257 cookies need to be set. It is also now possible to reset every user's
258 user_token simply by clearing the values in the user_token column.
259 * Removed ./tests/qunit/index.html from core. It wasn't actively maintained and
260 has been made obsolete when [[Special:JavaScriptTest/qunit]] was introduced,
261 which actually uses ResourceLoader, LocalSettings and the Skin.
262 * Removed $wgDBtransactions global. This was only checked in one class
263 and only applies to MyISAM or similar DBs. Those should only be used
264 for archived sites anyway. We can't get edit conflicts on such sites,
265 so the WikiPage code wasn't useful there either.
266 * Deprecated mw.user.name in favour of mw.user.getName.
267 * Deprecated mw.user.anonymous in favour of mw.user.isAnon.
268
269 == Compatibility ==
270
271 MediaWiki 1.20 requires PHP 5.3.2. PHP 4 is no longer supported.
272
273 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
274 support for them is somewhat less mature. There is experimental support for IBM
275 DB2 and Oracle.
276
277 The supported versions are:
278
279 * MySQL 5.0.2 or later
280 * PostgreSQL 8.3 or later
281 * SQLite 3.3.7 or later
282 * Oracle 9.0.1 or later
283
284 == Upgrading ==
285
286 1.20 has several database changes since 1.19, and will not work without schema
287 updates.
288
289 If upgrading from before 1.11, and you are using a wiki as a commons
290 repository, make sure that it is updated as well. Otherwise, errors may arise
291 due to database schema changes.
292
293 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
294 new database fields are filled with data.
295
296 If you are upgrading from MediaWiki 1.4.x or earlier, some major database
297 changes are made, and there is a slightly higher chance that things could
298 break. Don't forget to always back up your database before upgrading!
299
300 See the file UPGRADE for more detailed upgrade instructions.
301
302 For notes on 1.19.x and older releases, see HISTORY.
303
304 == Online documentation ==
305
306 Documentation for both end-users and site administrators is available on
307 MediaWiki.org, and is covered under the GNU Free Documentation License (except
308 for pages that explicitly state that their contents are in the public domain):
309
310 https://www.mediawiki.org/wiki/Documentation
311
312 == Mailing list ==
313
314 A mailing list is available for MediaWiki user support and discussion:
315
316 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
317
318 A low-traffic announcements-only list is also available:
319
320 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
321
322 It's highly recommended that you sign up for one of these lists if you're
323 going to run a public MediaWiki, so you can be notified of security fixes.
324
325 == IRC help ==
326
327 There's usually someone online in #mediawiki on irc.freenode.net.