Commit graph

664 commits

Author SHA1 Message Date
Tim Starling 1e1e7ef135 Centralise configuration of Shellbox /bin/sh location
Use $wgShellboxShell, introduced for this purpose in
If41a2baada2e4e2462518c1f437af458feb29632.

Change-Id: Ic35598f26a868624a8b2e37ab064a6c0c27e392f
2024-01-19 11:36:47 +11:00
Translation updater bot 5387c2f968 Localisation updates from https://translatewiki.net.
Change-Id: I0c7afdf1508c41c1cabda355269a6d71a596ce59
2023-12-04 09:05:22 +01:00
Translation updater bot b5e4feaa5b Localisation updates from https://translatewiki.net.
Change-Id: Iea1fca870be675f6d7fae7393777a1e4f8744ac1
2023-12-01 09:40:24 +01:00
Translation updater bot e32f03e615 Localisation updates from https://translatewiki.net.
Change-Id: I2a1265d1bd9e953cdf17fa9ee82c4d15c8b1c12c
2023-11-23 11:57:06 +01:00
Translation updater bot bf2dc0e434 Localisation updates from https://translatewiki.net.
Change-Id: Ifa533e6c055bc78b6b71bd48848285eb7246b042
2023-09-19 09:25:51 +02:00
James D. Forrester 2e83d9343c build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Ie0e0dd669d4819cf75f970e5d7a9d504df9e6ba9
2023-08-19 13:59:46 +08:00
Translation updater bot 4f9146379b Localisation updates from https://translatewiki.net.
Change-Id: I96b0f8b40436900e54944517e4fc7e545a77c5cd
2023-07-24 09:39:15 +02:00
Translation updater bot dfe42a5c8d Localisation updates from https://translatewiki.net.
Change-Id: I3ec9f1992f7f9754c98415cacf8a9081283a487e
2023-07-06 10:16:23 +02:00
Translation updater bot fed38359ba Localisation updates from https://translatewiki.net.
Change-Id: I2c128c6165413f711c0db1254abca662957b1f23
2023-06-26 12:40:29 +02:00
Translation updater bot 271dca8c9d Localisation updates from https://translatewiki.net.
Change-Id: I230e5ecee1026fd9f421db7db34bfca4958e2797
2023-06-05 08:41:19 +02:00
libraryupgrader 94acd2cb69 build: Updating grunt-banana-checker to 0.11.0
Change-Id: I71b97103ab7aee7e03d175e9e26947e211861e82
2023-06-02 00:02:01 +00:00
Translation updater bot 93b7e55e46 Localisation updates from https://translatewiki.net.
Change-Id: Ia8e5b8ab7a8cb6efc67bec3edc8b37e0db48fb8c
2023-05-08 10:33:01 +02:00
libraryupgrader e04b9ba763 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: Id91269f8e06fe4b0950861074ee9ae5c7c8cdb9f
2023-05-06 00:45:39 +00:00
Translation updater bot 150c505375 Localisation updates from https://translatewiki.net.
Change-Id: Ice5f5e2d6a3ab30f76e5966ddaf371f53fa8e934
2023-05-05 10:40:29 +02:00
libraryupgrader 03c0d0873b build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Id1a78e3c3b9e3d6d4334dd77682df192ad9c6699
2023-04-29 08:46:50 +00:00
libraryupgrader 7579f4f3ad build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1

Change-Id: Id9da2a580068e3cbf99398972254f4f1083e257a
2023-03-15 22:10:58 +00:00
libraryupgrader 50bd785723 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I909778b70d8cdb48b5717587b5fa89a5c56b3a77
2023-03-12 08:03:31 +00:00
Translation updater bot ba728a6c89 Localisation updates from https://translatewiki.net.
Change-Id: Ifb6a9109cd50520987d928cbbdb22fb227e28693
2023-01-12 08:42:42 +01:00
Translation updater bot 69da29482f Localisation updates from https://translatewiki.net.
Change-Id: I89631b6a919b162258adb62abc320c2ce4d79d3a
2022-12-21 09:17:13 +01:00
libraryupgrader f373b0d59d build: Updating mediawiki/mediawiki-codesniffer to 40.0.1
Change-Id: I051a036ffcfed735d88cc484b0db6a0bf3001151
2022-11-16 13:10:02 +00:00
libraryupgrader 792e60be50 build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: Icf96f0fa9fb673547a0e44cf30e437077659a41f
2022-10-21 12:28:30 +00:00
Translation updater bot 701d081619 Localisation updates from https://translatewiki.net.
Change-Id: Iac327f7fe455cf81bbf3ea9d2500c974c9c401b9
2022-10-10 10:20:52 +02:00
libraryupgrader 16407d97ec build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: Ia27765f11934844a40b36c34cde79014f38423d5
2022-10-09 08:29:30 +00:00
libraryupgrader d86556258b build: Updating grunt-banana-checker to 0.10.0
Change-Id: I7a025123fde24556c1f28a1b259a902905a0e662
2022-10-07 03:41:16 +00:00
Translation updater bot 92fe2e7bd2 Localisation updates from https://translatewiki.net.
Change-Id: I96bdbeaed71ce2ac5bcbb2771c5f4a80cd8a3916
2022-09-28 08:22:27 +02:00
jenkins-bot df0a020174 Merge "PdfHandler: Set cache with clearer key group and finite expiry" 2022-09-19 04:48:32 +00:00
Timo Tijhof a43a11136a PdfHandler: Set cache with clearer key group and finite expiry
* The key group should generally reflect a single logical key,
  usually a single getWithSet call, with the rest being variants
  of that key, e.g. not a namespace.

* Give it an explicit expiry. I noticed this issue by reviewing the
  remaining data stored on WMF's mainstash-redis instances.

  There were some old file-pdf:* keys there from long ago. They were
  able to survive this long due to not having an expiry set.

  Ref https://phabricator.wikimedia.org/T280586#8168908
  Ref https://phabricator.wikimedia.org/T314453#8168858

Change-Id: Ibad24c0ac7d1e7f965227f49320814b96375858e
2022-09-02 15:18:23 +02:00
Translation updater bot 65e15cbac4 Localisation updates from https://translatewiki.net.
Change-Id: I21e3cefe84b3aab25ad4328a44169e642a56ede6
2022-09-01 09:34:24 +02:00
Translation updater bot 45aa3def2c Localisation updates from https://translatewiki.net.
Change-Id: If06b8f46b16ca2a653f5952d2fe73da8113c5909
2022-08-12 08:43:48 +02:00
jenkins-bot 7a14e5509d Merge "Use the PDF cropbox for rendering" 2022-08-05 17:45:19 +00:00
Translation updater bot 5719558376 Localisation updates from https://translatewiki.net.
Change-Id: I917bc5c30f52cc98aea8b8038f40c860e03d0333
2022-08-03 08:18:44 +02:00
Translation updater bot 9bce161efa Localisation updates from https://translatewiki.net.
Change-Id: I8da657e7150fa26fc8f82577172c99cd9bdce221
2022-08-01 08:23:14 +02:00
Translation updater bot 72350e99a5 Localisation updates from https://translatewiki.net.
Change-Id: I64db223a3427a514aca95a3e1a3be278dd935c30
2022-07-25 08:38:26 +02:00
Translation updater bot 1e392d855c Localisation updates from https://translatewiki.net.
Change-Id: I831292bbfdb1e0699a09051fa2d6c30367d47b8a
2022-07-01 08:53:23 +02:00
Derk-Jan Hartman b846970ae2 Use the PDF cropbox for rendering
By default the mediabox is used. This is the full potential area of
pages, as also used by PDF editors and can contain areas outside of
the page.
The cropbox is also the size that is reported by pdfinfo as the
pagesize.

Bug: T167420
Change-Id: I92267a9dbe81b6e0e471b8eae1e4c2ba4e5d84e9
2022-06-15 18:39:35 +00:00
Translation updater bot ab9d2d689d Localisation updates from https://translatewiki.net.
Change-Id: I5017c97f94487c2f4b9ed93076b036e5b61b5d60
2022-06-06 09:26:27 +02:00
libraryupgrader 14814e141c build: Updating grunt to 1.5.3
Change-Id: Id5a81e345d9cb21f5ea9c8d914ab103a388cb504
2022-05-26 21:03:05 +00:00
libraryupgrader 9d3c3b0c5b build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

npm:
* eslint-config-wikimedia: 0.20.0 → 0.22.1
* grunt: 1.4.0 → 1.5.2
* grunt-eslint: 23.0.0 → 24.0.0
* async: 3.2.0 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25

Additional changes:
* Set `name` in package.json.

Change-Id: I7310b118631d24bcd6cea2ffb7bd79490dbb6954
2022-05-21 09:29:19 +00:00
Translation updater bot 17a370c3af Localisation updates from https://translatewiki.net.
Change-Id: Ia0d6046658222fe9ee2ef146d0e322ef78f6dd47
2022-04-15 09:56:49 +02:00
Umherirrender 42c1ee7c0a build: Remove unneeded suppression after ImageHandler::normaliseParams
Depends-On: I8d14e49340d30c56642422cd88169019dd2c4286
Change-Id: Ie4561840fe70e0ef92e8eec1c6edc335f0da6c1f
2022-04-06 21:32:32 +02:00
Translation updater bot 9c8931a74f Localisation updates from https://translatewiki.net.
Change-Id: I81de45fa9b70601c9e149b68a329ab049886f3d2
2022-03-29 08:06:05 +02:00
zoranzoki21 68b4048e0e Fix excluded PHPCS error MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected
Change-Id: Iba99ebfc6e96bdfbd61f2a8151c54f1e50272d26
2022-03-06 13:23:43 +00:00
Translation updater bot c966f339e3 Localisation updates from https://translatewiki.net.
Change-Id: Iaacfd67462b558f6413eb4140efe2c357f9c64dd
2022-02-14 08:14:58 +01:00
Translation updater bot 0d4b649d70 Localisation updates from https://translatewiki.net.
Change-Id: I83136c3621c36d29d692c47331f86d18bc7386a7
2022-01-18 08:11:10 +01:00
Umherirrender f07840d997 Require MediaWiki 1.37 for File::getMetadataItems
Used File::getMetadataItems is part of
I039785d5b6439d71dcc21dcb972177dba5c3a67d

Follow-Up: I30d0b0009fcb11c14d14663bd1f2c2a3dfac55d6
Change-Id: Iddacb31efc9ec9da3ba87c7c8cdac04a36a1af39
2022-01-01 16:08:24 +01:00
libraryupgrader 77621e1dee build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I81f98d5a2afd7cbaca108efd050d95e21d941af1
2021-10-24 09:59:33 +00:00
libraryupgrader 009099c41c build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/5197 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: Ia80b5eb4c6166aaaadd2c7e5784c16419e75f4f7
2021-10-05 05:59:48 +00:00
Umherirrender 44e2d41b8f build: Disable phan option scalar_implicit_cast and make pass
Change-Id: I30c11acd17334f292c7a83dba49cf59d182728f3
2021-09-26 12:18:33 +00:00
Umherirrender 85fbb12dbe Remove unneeded check for return value of explode
explode returns an array with one item,
but the empty string is already checked before the explode

Change-Id: I441309978b25754bad04eeba69993913de4d48c3
2021-09-26 11:46:08 +00:00
Kunal Mehta b253dc04c4 Port retrieveMetaData to BoxedCommand
Combine all 3 shellouts into one script, retrieveMetaData.sh.

The script is executed by /bin/sh by default, it can be changed for
Windows users by setting $wgPdfHandlerShell.

pdftotext is a bit special since it's behavior varies based on the
program's exit code, so save that in a file so we can check it
independently of the overall exit status.

Bug: T289228
Change-Id: I29750bcc282bd5f9b8e2f79aa340869738ea5f5b
2021-09-20 10:28:27 -07:00