Commit graph

128949 commits

Author SHA1 Message Date
a smart kitten
ffa868bcf1 PostgresUpdater: Fix typo in sites_group index renaming; re-attempt to drop most of the dropped sites indexes
Why:
 - From MediaWiki 1.36 to MediaWiki 1.44 (inclusive),
   `PostgresUpdater.php` contains a typo in the instruction to rename
   the `sites_group` index to `site_group`.
 - This typo means that - on Postgres wikis - the MediaWiki update
   script will not currently rename this index as intended, as the index
   which the updater is told to rename (i.e., containing the typo)
   doesn't exist.
 - From MediaWiki 1.42 onwards, this typo indirectly causes `update.php`
   on Postgres wikis to throw an error on its first run:
    - From MW 1.42 onwards, the update script included an instruction to
      drop multiple indexes on the `sites` table, including this index
      that was previously intended to be renamed.
    - However, as this typo meant that the `sites_group` index was never
      renamed on Postgres wikis, the database is unable to find the
      renamed index in order to drop it; and consequently throws an
      error (reported on Phabricator as T374042).
 - This only affects the first run of `update.php` due to the fact
   that - when deciding whether to apply the patch containing _all_ of
   the index-drops for the `sites` table - the `dropIndex` instruction
   only checks for the existence of the `site_type` index (and, if the
   `site_type` index doesn't exist, the patch as a whole isn't applied).
   However, as - within `patch-sites-drop_indexes.sql` - the statement
   to drop the `site_type` index is located _before_ the instruction to
   drop the `site_group` index, the `site_type` index will have been
   dropped on the first run of `update.php`.
 - This also means that - on any future runs of `update.php` - the
   indexes listed after (and including) `site_group` in that SQL file
   will currently remain un-dropped.

What:
 - Fix the typo in the PostgresUpdater index renaming instruction:
     `'sites_group, '`   ->   `'sites_group'`
 - Update PostgresUpdater to individually re-attempt to drop the indexes
   listed after & including `site_group` in
   `patch-sites-drop_indexes.sql`, to ensure that they're dropped on
   Postgres wikis that have already (1) upgraded to MW 1.42+, & (2) ran
   `update.php`.
   (These could theoretically have all been combined within one extra
   SQL patch, rather than one for each index; but I thought it might be
   best for the updater to check for the existence of each of these
   indexes individually before it attempts to drop each one.)

Follows-up 9907b56c9b, 616744db1d

Bug: T374042
Change-Id: Ie6ffa92153e64ca653f726a35a5a6b5d95d093f5
2025-08-03 11:40:46 +01:00
Derk-Jan Hartman
4a391d63d0 ImagePage: Remove PNG previews line for native SVG rendering
Bug: T393028
Change-Id: I15f3dd10f4f30c78ac8dfce0fd6c1eb1a3df4c8d
(cherry picked from commit 21d884ce7d950aaeab990c3069575f435e2911d3)
2025-07-31 21:51:22 +00:00
Umherirrender
7508435ecc maintenance: Fix sql for touched-only option of refreshLinks script
The convert from raw sql to expression in 81c6df6a46
has a error for the touched condition.
Switch the conditions and use RawSQLExpression to use the raw sql.

Follow-Up: Ieb229d8088cb1ff3f03e44f7ac99eb612f48bc7b
Change-Id: I8fbe0ec44d1a43795a3e4c94f910e09878eebde6
(cherry picked from commit f11b59de58bcb241fa337bbcdd276d25bc94e462)
2025-07-31 14:06:42 +00:00
Aditya Kumar
f4e70dc71e Show user a human readable message when $wgLocaltimezone is set to an invalid timezone
Reason for backport:

This can also be a Debian 13 support issue, some MW installations may
have had `$wgLocaltimezone` set to deprecated values[1] like `PRC`
by the installer or manually.
After they upgrade to Debian 13, the `tzdata` package no longer
provides these timezones, and the `tzdata-legacy` package is not to be
installed by default.

[1]: https://www.php.net/manual/en/timezones.others.php

Bug: T380423
Change-Id: Ie2001796442ee6ba973fdb4b7b1dc7312f802e8d
(cherry picked from commit 45dc435d897d7716ddc8215cb841b07f1c7a2f9c)
2025-07-30 13:08:49 +00:00
Bilin Tsui
bc5dad6ace
i18n: Add Special:MyLanguage to mediawiki.org links
Change-Id: I61eb034973c0d0610a4b1c26c8b25dbfaafc2187
(cherry picked from commit 51d9f481f0ebe4ddabffbc4d110c091756bfd3e2)
2025-07-29 23:48:59 +08:00
Translation updater bot
05e2a0b9d8 Update git submodules
* Update skins/Vector from branch 'REL1_43'
  to 5c2db5ad672761fb395b3c9a53a89a6d1dfc2bfc
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I6ffb332874fc7c60fcf2a00c6ee2de5d0ba30ac7
2025-07-29 07:01:46 +00:00
Translation updater bot
420449017f Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to fc7a61607d83cd13635611542aa4941c5b26783e
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Iccabcb135a45fd9cefa2de1331ffbaf8a12c3b03
2025-07-29 07:01:45 +00:00
Translation updater bot
4cc9cf872f Update git submodules
* Update extensions/VisualEditor from branch 'REL1_43'
  to 17e4b901bf43e843253f1d64ae6192786a749c56
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ia5c6222876a30901ec002faf16391d891c7be4d4
2025-07-29 07:00:14 +00:00
Translation updater bot
4ce17d1d30 Update git submodules
* Update extensions/WikiEditor from branch 'REL1_43'
  to 95155114c5e950fc53183ad8e8dab7d3596500d9
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I27916227815aa44be6bb1282b4f5017f651c21bc
2025-07-29 07:00:02 +00:00
Translation updater bot
476ffdb193 Update git submodules
* Update extensions/Thanks from branch 'REL1_43'
  to 727c027b8bb8b11def3c3c1d63fc04c2d4594935
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I9150fb2eb829fd065379d437c6dcc5672d82d833
2025-07-29 06:59:40 +00:00
Translation updater bot
ce3586bfc6 Update git submodules
* Update extensions/TemplateData from branch 'REL1_43'
  to 5a4184b03c8771721c7642e9951043828edf63d0
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I088de2c9783294b7e22112121bd0581957ed04cc
2025-07-29 06:59:37 +00:00
Translation updater bot
a546a21bd6 Update git submodules
* Update extensions/Scribunto from branch 'REL1_43'
  to 49735b9b0eb98bb9a3580ff4a8814c58d0fc6a07
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I90d2ce9e836f1ad380ddb6061a3bd4f79cd994a5
2025-07-29 06:59:29 +00:00
Translation updater bot
bffc660e5a Update git submodules
* Update extensions/PdfHandler from branch 'REL1_43'
  to 431c8f9ea566481a2c43336e5fa70912fa40b1bf
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I1249ba6014777e50149a0afa4bceea35e2a772d2
2025-07-29 06:59:04 +00:00
Translation updater bot
1094b6af30 Update git submodules
* Update extensions/ParserFunctions from branch 'REL1_43'
  to 84e4ff9b7f1a4c9cf457c6956d13663411bdda56
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I3e9759892e71be9eadedd52ef153c03070c167e6
2025-07-29 06:59:02 +00:00
Translation updater bot
0244c85b46 Update git submodules
* Update extensions/Nuke from branch 'REL1_43'
  to e4e217058426c71cf07e01f0ee1cc8442fbfe4ec
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I7eeb12e519244f197902c4b5f8e67cdec468c838
2025-07-29 06:58:54 +00:00
Translation updater bot
8b08420e2d Update git submodules
* Update extensions/Linter from branch 'REL1_43'
  to 0748f3d82008b0848c327395fe871fdeaf70264c
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Id93e6b842a5680e1a605df6d5e5b256eec962603
2025-07-29 06:58:37 +00:00
Translation updater bot
953763b268 Update git submodules
* Update extensions/LoginNotify from branch 'REL1_43'
  to afe5d60a3bdd3642b4b8d47f8c341b7a5042c5e9
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ic16b2c24a92f1cbb7de68f45a0aeaba1006d0191
2025-07-29 06:58:37 +00:00
Translation updater bot
377b29daf5 Update git submodules
* Update extensions/ImageMap from branch 'REL1_43'
  to 034a89c710696b04f509e9c4b2ae9fc291986e9f
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I974a889c39c067c45e343d56f3bc837037a151fe
2025-07-29 06:58:17 +00:00
Translation updater bot
6f1e87e168 Update git submodules
* Update extensions/Gadgets from branch 'REL1_43'
  to d215343d742c354cf9f01f0838ae7e8448b7c041
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I318b1b1db07805064563c81ad12b8cf531968c70
2025-07-29 06:58:08 +00:00
Translation updater bot
3bfceb502b Update git submodules
* Update extensions/Echo from branch 'REL1_43'
  to ef46451b9be6af9e7a2411d044fe43aebed80564
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I078c5e0d15d501599e98132d0bf3804025a21569
2025-07-29 06:57:57 +00:00
Translation updater bot
8d28a2544c Update git submodules
* Update extensions/DiscussionTools from branch 'REL1_43'
  to 0375aeaa06a84d83b2ed4b30dbc0c8d359ece4df
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Iab3bb8de5dcc4cc8775a68646528e4222e409c89
2025-07-29 06:57:56 +00:00
Translation updater bot
3a86666686 Update git submodules
* Update extensions/ConfirmEdit from branch 'REL1_43'
  to 1ef1d3917d7c8cc8a1b5ff25bcbdf63f12d2a3eb
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I2a99c152adb896ebc33a8bcf6b1b4480cdf6f969
2025-07-29 06:57:43 +00:00
Translation updater bot
a207e12de3 Update git submodules
* Update extensions/Cite from branch 'REL1_43'
  to 8747d08faeed5adc5d28a5a1df6bbec071ba97d5
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ifebfba06422119abd9324403b449c5088bf92898
2025-07-29 06:57:29 +00:00
Translation updater bot
1bcd76b70a Update git submodules
* Update extensions/CategoryTree from branch 'REL1_43'
  to 9f0287bf0eeb04bab2be3737c0dcd52c0fc57c72
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ia9a2d0232a2d8859abd6a8781282f9ff43af8291
2025-07-29 06:57:20 +00:00
Translation updater bot
beecbd08e4 Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to 6f1895690a192c5b96acaed9f427c6a25c76ec11
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ie5b55129fc1f145c1576c0670138e81721fa4f4f
2025-07-29 06:56:59 +00:00
Translation updater bot
b41ba4a682
Localisation updates from https://translatewiki.net.
Change-Id: Ib561627c8c9dad04228e41c80c8b12c16b18ad4e
2025-07-29 07:33:35 +02:00
Derk-Jan Hartman
91fedb08bc Exif: Handle malformed gps tags
- Handle GPS tags with decimal rational number instead of array of dms
  rationals
- Mod the decimal values
- Increase validation on GPS tag format

Bug: T386208
Change-Id: Ief823af317bbb01b4a05e34b1d189ce1deaa1f33
(cherry picked from commit 55ffc43a596c0547986322ffe679d37daa921be7)
2025-07-28 16:19:44 +00:00
Umherirrender
bce244403c media: Remove pass-by-ref in Exif::exifGPStoNumber
Use coalesce operator to check if the array key exists

Change-Id: Icf24e208a487bafe3d1983536870aac19cfc4b5e
(cherry picked from commit f0ad539b4e613216639b04386f56d6bb1b656d14)
2025-07-28 16:19:19 +00:00
C. Scott Ananian
30ae82e2b2 ParserOutput: Prepare to allow JsonCodec serialization of TOCData
In a future patch (Ia690f10ccbf4f60f9febca98915155c2df58f0d4) we will
use native JsonCodec serialization of the TOCData object.  But first
we will add forward-compatibility code to deserialize TOCData, so that
if we need to rollback the future release we won't break the parser
cache.

New serialization test cases added, as per
https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility

Bug: T327439
Change-Id: I4652b2709afd33ff5e469e36960391e993bc7bae
(cherry picked from commit bf61f6bc0eaf5013167e4b80860b0a610559c661)
2025-07-26 01:18:35 +00:00
Bartosz Dziewoński
2f9383b270 diff: Avoid Phan warning with some Wikidiff2 versions
Something changed in WMF CI config that causes this warning to be
emitted, perhaps T397429#11035011.

Change-Id: Ib477c1812c48a96b252a4f687e09f1ca5c30c2f3
(cherry picked from commit 4b5fc06c5e34b0a9332c9228ac3c28fd0f750c6c)
2025-07-25 17:18:53 +00:00
libraryupgrader
1469f52ab0 Update git submodules
* Update skins/Vector from branch 'REL1_43'
  to c567186c471aa48195c15b4e483064da45882973
  - build: Updating form-data to 3.0.4, 4.0.4
    
    * https://github.com/advisories/GHSA-fjxv-7rqg-78g4
    
    Change-Id: I5585daecb79c034073b74c06849029d85c150347
2025-07-24 23:12:44 +00:00
libraryupgrader
15cf8b36c5 Update git submodules
* Update extensions/Cite from branch 'REL1_43'
  to 488acf77519fc9f1af79640e78dbb6edc04a8387
  - build: Updating npm dependencies
    
    * @cypress/request: 3.0.1 → 3.0.8
      * https://github.com/advisories/GHSA-fjxv-7rqg-78g4
    * form-data: 2.3.3 → 4.0.4
      * https://github.com/advisories/GHSA-fjxv-7rqg-78g4
    
    Change-Id: Id4470b2b758a720637737a86a86ddc90cdc04aa7
2025-07-24 03:09:01 +00:00
Translation updater bot
5b35f5a130 Localisation updates from https://translatewiki.net.
Change-Id: I4e5046afcfdae3bd1be13e478fddae50d49fa747
2025-07-24 02:19:27 +00:00
Umherirrender
e85535f90c Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to 23e5a2a8caba8bcd975e2f1ae0f40f18c389c718
  - Provide default for missing request values on Special:AbuseFilter/new
    
    Missing request value can only happen when the form is submitted in an
    non-normal way; we should ensure it does not log warnings in that case.
    
    Bug: T396591
    Change-Id: I101d5d8ed1bca134a6d1cd4da6ca4768374f484c
    (cherry picked from commit b9e34ed31a5a221a5dd758b95eac3c857228747c)
2025-07-23 18:00:37 +00:00
Siddharth VP
5b202040ec Update git submodules
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
  to d8afdf64f373ada44c832a143169158d9ad691b3
  - Update pygments/AUTHORS file
    
    In create_pygmentize_bundle script, fetch the AUTHORS file from the
    GitHub repo and update our local copy.
    
    Change-Id: Ifbb84fcfb956fa2e3f4312e7b3b059c474322f82
    (cherry picked from commit 696f5ef27a360017ead545a994b63f300f5ce021)
2025-07-23 14:24:12 +00:00
Dreamy Jazz
9d39b05391 Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to bc7e84a07c991ebd9251fb7d0cfb5829af50cbaf
  - SECURITY: Check protected variable access in CheckMatch API
    
    Why:
    * The AbuseFilter 'abusefiltercheckmatch' API allows users to
      check if abuse_filter_log rows or recentchange rows match against
      a provided pattern.
    * This currently does not check if the pattern attempts to match
      against protected variables that may be present in the variables
      generated for either the RecentChange or abuse_filter_log row.
    ** This allows users to trial-and-error work out the value of
       protected variables when they do not have access to the
       variables.
    * This should not be possible and proper access restrictions for
      protected variables should be applied.
    ** This includes logging when a caller is matching against
       protected variable values to avoid trial-and-error matching
       allowing an authorised user to see the value without creating
       a log entry.
    
    What:
    * Update CheckMatch::execute to:
    ** Reject attempts to match using a pattern that contains
       protected variables that the user cannot see the value of.
    ** Reject attempts to match against abuse_filter_log rows that have
       protected variable values that the user cannot see to be
       consistent with Special:AbuseLog access restrictions.
    ** Log when the provided pattern uses protected variables that
       have a value in the variable dump.
    * Add tests to verify this fix works.
    
    Bug: T397196
    Change-Id: I5f02572b94760141f6f57873409469318f441e18
2025-07-23 13:52:08 +00:00
Bryan Davis
8188c1cbfd Update git submodules
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
  to ccf8bf6ef56c8acc5beed3a55f463acd3f16eeb0
  - Update Pygments to 2.19.2
    
    Bump embedded Pygments version from 2.18.0 to 2.19.2. Changes
    <https://github.com/pygments/pygments/compare/2.18.0...2.19.2>.
    
    New lexers: codeql, debian.sources, gleam, googlesql, hare, json5,
    maple, numba_ir, numbair, pddl, pyi, ql, rego, tablegen, td, tsx, vue,
    zetasql.
    
    Includes upstream contributions from Taavi and Diskdance.
    
    Bug: T383018
    Change-Id: I2430784ee62b348f902bdeeb55b04536a963ad98
    (cherry picked from commit 936d4b68cd563b79fce27b65780ae20f36ea7ecf)
2025-07-23 13:46:38 +00:00
Bryan Davis
208b6fff38 Update git submodules
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
  to bbbc805d9805c76be2a5a88467f6473a4ad85402
  - Update Pygments to 2.18.0
    
    Bump embedded Pygments version from 2.17.2 to 2.18.0. Changes
    <https://github.com/pygments/pygments/compare/2.17.2...2.18.0>.
    
    New lexers: Janet, Lean 4, Luau, MOjo, org-mode, Promela, Soong
    / Android.bp, Tact, Typst.
    
    Bug: T364249
    Change-Id: I3e0961fd25f55e99bf76debaa004d9895475baad
    (cherry picked from commit 8710b947ae7345308c298a7d38269dfef6031047)
2025-07-23 11:26:45 +00:00
Redjard
88c6cfbc8d Fix attachLatest --regenerate-all creating invalid SQL command
Change-Id: Iabb55be7b7c55dad072b53147570ae71ed382081
(cherry picked from commit 6f708bf0746fb43fbce8d32368bdb0519a64ed9b)
2025-07-23 11:06:39 +00:00
C. Scott Ananian
0809cc355f ParserCacheSerializationTestCases: distinguish empty ToC from missing ToC
Add a new test case for the "empty ToC" case, to complement the
existing serialization test cases for "missing ToC" and "non-empty
ToC".

Change-Id: I8e2ff94f871546232cbf099f98bfcce559de76f2
(cherry picked from commit cb2173c57276142adc466f7494016e2faf15b758)
2025-07-23 01:31:23 +00:00
C. Scott Ananian
5b7a803a5d ParserCacheSerializationTestCases: back port ParserOutput changes from 1.45
Add parser cache data from 1.45, according to the process in

https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility

and synchronizing with I04e715acc721d20c5fbd586ed44cef219f56cf4f.

Change-Id: I55cdbf821f5d9930822a633a6b767f0528e74a5d
2025-07-23 01:25:37 +00:00
Translation updater bot
7516a1197a Update git submodules
* Update skins/Vector from branch 'REL1_43'
  to 5f0b824950827049a4fef1b30300fb47f0146547
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I8857751edb1f26a8fa4d8efc416a3b301ead1b16
2025-07-22 06:48:03 +00:00
Translation updater bot
4b3c480601 Update git submodules
* Update skins/MinervaNeue from branch 'REL1_43'
  to 15be00877bcaa6454fef62f41cec84075f92e14b
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I7082bde397bc470df6851db797a2e18d9c2d4c66
2025-07-22 06:47:59 +00:00
Translation updater bot
9e324a5344 Update git submodules
* Update skins/MonoBook from branch 'REL1_43'
  to d1e391f5d5bca71a347074587e3b2bffe43109b3
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I373c99025e8ff707f47a47cec325f5d945de88a4
2025-07-22 06:47:58 +00:00
Translation updater bot
b73c5c39ec Update git submodules
* Update extensions/VisualEditor from branch 'REL1_43'
  to bf5a93f1d42f6bf6dd644819bcb7138e8c26c147
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I95a318a1e35e29a56b677adcb9d1eb4525856a37
2025-07-22 06:46:40 +00:00
Translation updater bot
b6c6fabf77 Update git submodules
* Update extensions/WikiEditor from branch 'REL1_43'
  to 14128bb4148e03f1b15c8d8a2345d4344f155b9a
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I95a318a1e35e29a56b677adcb9d1eb4525856a37
2025-07-22 06:46:35 +00:00
Translation updater bot
496fa324c1 Update git submodules
* Update extensions/Thanks from branch 'REL1_43'
  to 75ea5628f951044bfe25d9985abdec59f035d1f3
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I6549effe94b0132baa9bce2bd1717a3de18ef0d8
2025-07-22 06:46:15 +00:00
Translation updater bot
6064bbd52c Update git submodules
* Update extensions/TextExtracts from branch 'REL1_43'
  to d883c3ee1b4559d135e81c9c3b063692f9d54b35
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I888942b85883774788329e089bded87fe405b7d6
2025-07-22 06:46:11 +00:00
Translation updater bot
d78ada4a8a Update git submodules
* Update extensions/TemplateData from branch 'REL1_43'
  to b966fe7c94c580a5f03df1f386962551653f333e
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I4db9f8c43a3dfec526425b746b88f7a768d154dc
2025-07-22 06:46:10 +00:00
Translation updater bot
f469a977aa Update git submodules
* Update extensions/OATHAuth from branch 'REL1_43'
  to 41afa24a708a23b01c92dcaddb6ff4e5e0734062
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I9e607b12c7696c58a63ba53bb434a6c9b30749bb
2025-07-22 06:45:43 +00:00