2
0
镜像自地址 https://github.com/edwardspec/mediawiki-aws-s3 已同步 2024-05-31 13:30:16 +08:00
提交图

386 次代码提交

作者 SHA1 备注 提交日期
Edward Chernenko
d374d0bd7c (tests) Run tests on REL1_42 branch 2024-05-06 16:21:29 +03:00
Edward Chernenko
29db5b45e4 (1.43) Implement doMoveInternal()
Required in upcoming MediaWiki 1.43 (see issue #77).
2024-05-06 15:26:23 +03:00
Edward Chernenko
d35a60a915 (tests) Update tests for the new version of Moto server (S3 mock) 2024-03-02 16:34:47 +03:00
Edward Chernenko
b277b87eeb (version) 0.13.0 2023-12-31 13:01:15 +03:00
Edward Chernenko
d75873a1f5 (debug) Log situation when some container is not configured
This situation happens if some extension is using non-standard zones
(not public/thumb/deleted/temp), and they are not in $wgAWSRepoZones.

Example: issue #66, issue #69, issue #61.

To use a non-standard zone, you should configure it like this:

$wgAWSRepoZones['transcoded'] = [
	'container' => 'local-transcoded',
	'path' => '/transcoded',
	'isPublic' => true
];
2023-11-19 19:23:32 +03:00
Edward Chernenko
11b58d4fc5 (tests) Run tests on REL1_41 branch
REL1_37 is skipped, because MediaWiki core itself has composer issues
on its REL1_37 branch, and MediaWiki 1.37 is EOL.
2023-11-13 13:42:22 +03:00
Edward Chernenko
d7d339df3d
Merge pull request #63 from OAuthority/patch-1
(doc) Update CNAME
2023-06-24 08:50:49 +03:00
OAuthority
1f45fc8efb
Update CNAME
You need the location of the bucket as per AWS guidance; without it, when you view an image, it redirects to the S3 domain (which doesn't allow you to use the SSL certificate of your site if using one).
2023-06-24 06:20:25 +01:00
Edward Chernenko
26aa8e7eb2 (feature) Allow to add non-standard zones to $wgLocalFileRepo
See issue #61.
2023-06-11 01:18:13 +03:00
Edward Chernenko
62529e6ba9 (tests) Only use PHP 8.1 when testing MW 1.39+ (Composer requirements)
While MediaWiki 1.39 still supports PHP 7.4, "composer install" during
the installation of MediaWiki 1.39 is regularly failing with PHP 7.4,
because various Composer packages used by MW 1.39 are setting PHP 8.1
as their minimum required version of PHP.

This causes test failures unrelated to this extension.
Workarounding this on our side, while possible, is highly impractical.
2023-06-11 01:18:13 +03:00
Edward Chernenko
8558e71623 (tests) Use MariaDB 10.x (LTS) for testing 2023-06-11 00:52:48 +03:00
Edward Chernenko
744e594769 (tests) Run tests on REL1_40 branch 2023-03-26 15:27:04 +03:00
Edward Chernenko
aba18d2323 (tests) Update deprecated GitHub Actions 2023-03-26 15:27:04 +03:00
Edward Chernenko
7e114bdd6d (tests) Don't cache Composer dependencies
Caching these has sometimes resulted in packages that require PHP 8.1
being used by backward compatibility tests with PHP 7.4,
which results in test failures unrelated to this extension.
2023-03-26 15:24:02 +03:00
Edward Chernenko
98cc058f1c (doc) Fix typo in comment 2023-01-25 08:26:30 +03:00
Edward Chernenko
0d759c4e94 Merge pull request #58 from yoshz/master
Add support for path-style endpoints
2023-01-21 20:01:13 +03:00
Yosh de Vos
b4ab6bee32 Allow schema to be set on $wgAWSBucketDomain 2023-01-21 19:46:23 +03:00
Edward Chernenko
ab5af9ad30 (tests) Run tests with Ubuntu 22.04 (was: 20.04) 2023-01-21 18:36:23 +03:00
Yosh de Vos
a1bd84ea8d Added support for option use_path_style_endpoint 2023-01-21 15:26:39 +01:00
Edward Chernenko
fedcb8ad2f (compat) Update iterator classes to support PHP 8.1
See issue #56: must support PHP 8.1 (supported by MediaWiki 1.39).
2022-12-23 16:14:35 +03:00
Edward Chernenko
474b8d031d (tests) Run tests with PHP 8.0 and PHP 8.1
See issue #56: must support PHP 8.1 (supported by MediaWiki 1.39).
2022-12-23 16:02:31 +03:00
Edward Chernenko
5b62fe141f (feature) Allow excluding audio files (by file extension) from LocalCache
Local cache is most beneficial when a file is used to make a thumbnail.
Some files (such as audio) don't have thumbnails. They would consume
disk space for no reason, so it makes sense to exclude them from cache.

See issue #53.
2022-11-09 23:16:11 +03:00
Edward Chernenko
4f8041f574 (composer) Update composer/installers to support MediaWiki 1.39 2022-09-17 15:43:20 +03:00
Edward Chernenko
b998c4a322 (tests) Run tests on REL1_39 branch 2022-09-17 15:41:17 +03:00
Edward Chernenko
184b2ac8d5 (tests) Fix error when starting Moto (S3 mock server used by tests) 2022-09-17 15:41:17 +03:00
Edward Chernenko
ea769c9c5c (version) 0.12.0 2022-05-30 11:54:07 +03:00
Edward Chernenko
e8a4240dea (tests) Update grunt 2022-05-26 00:49:30 +03:00
Edward Chernenko
301c5da504
Merge pull request #51 from kghbln/patch-1
Use the current license identificator
2022-04-11 21:19:52 +03:00
Karsten Hoffmeyer
71890cbd39
Use the current license identificator 2022-04-11 20:03:52 +02:00
Edward Chernenko
696a017f77 (1.38) Replace deprecated wfGetMainCache() 2022-04-10 14:18:15 +03:00
Edward Chernenko
309766e57f (1.38) Rename MediaWikiTestCase class 2022-04-10 14:18:10 +03:00
Edward Chernenko
8dc94bdf73 (tests) Run tests on REL1_38 branch 2022-04-10 13:25:46 +03:00
Edward Chernenko
be6887a53a Fix headers like Content-Disposition being ignored in createOrStore()
See issue #49 for details.

When MediaWiki passes $params to FileBackend, names of HTTP headers in
$params['headers'] are already normalized (converted into lowercase),
so we should expect them to be in lowercase.
2022-03-01 06:23:03 +03:00
Edward Chernenko
a08f5d2093 (1.37) Replace deprecated wfWikiId()
Resolves #47.
2022-01-13 04:21:54 +03:00
Edward Chernenko
a22f6e8d6b (refactor) Shorter code ("$a ?? $b" syntax) 2021-11-15 04:13:14 +03:00
Edward Chernenko
e030238404 (cleanup) Remove unused property 2021-11-15 02:40:30 +03:00
Edward Chernenko
cf202e13c2 (refactor) Shorter code in AmazonS3FileBackend constructor
Property $useHTTPS wasn't used anywhere outside the constructor,
and it's private, so it can be safely removed.
2021-11-14 05:28:10 +03:00
Edward Chernenko
ac143aa0e5 (tests) Update phan-config to 0.11.0 and codesniffer to 38.0.0 2021-11-14 05:26:47 +03:00
Edward Chernenko
2a13ae2a87 (refactor) Don't use is_resource() method (deprecated in PHP 8.0) 2021-11-13 23:40:12 +03:00
Edward Chernenko
6bcb06f672 (tests) Run tests for MediaWiki 1.37 2021-10-16 08:40:15 +03:00
Edward Chernenko
b7c6e96a0f (tests) Workaround for Http::get() not being allowed in tests in 1.36 2021-05-28 19:09:31 +03:00
Edward Chernenko
3cc612ebb8 (tests) Run tests for MediaWiki 1.36 2021-05-28 18:15:25 +03:00
Edward Chernenko
488eb2ead6 package.json: update grunt to a newer version 2021-05-10 12:27:07 +03:00
Edward Chernenko
2524b036c8
Merge pull request #44 from lens0021/manifest
Migrate manifest version 2
2021-04-22 03:19:48 +03:00
lens0021
be28553e76
Fix reversed orders 2021-04-22 00:51:20 +09:00
lens0021
bd2f90472a
Migrate manifest version 2 2021-04-22 00:43:20 +09:00
Edward Chernenko
26b45bb761 Increase TTL of statCache to 7 days (this cache is never stale)
See issue #42.
2021-04-20 03:29:20 +03:00
Edward Chernenko
4de03ce311 Add cache to doGetFileStat() - will reduce API queries to headObject()
This is performance optimization, see issue #42.
It prevents MediaWiki from querying S3 for "does thumbnail exist?"
every time the page with this thumbnail is being edited.

Cache is properly invalidated on upload/rename/delete.
2021-04-20 03:29:18 +03:00
Edward Chernenko
48ebf2cd2f (tests) GitHub actions: use "edwardspec/github-action-build-mediawiki"
This GitHub action is used by testsuite of Extension:Moderation,
and it does exactly what we need.
2021-02-11 15:53:32 +03:00
Edward Chernenko
14b7547654 (refactor) Remove unneeded code in doGetLocalCopyMulti()
This whole loop with array_chunk() is legacy code and doesn't seem
to be needed, given that $concurrency is the same as count of elements.
2021-01-06 17:43:47 +03:00