| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Ied0be9891d70930caf415d75cb3b89043347f47e
|
|
|
|
|
|
|
|
| |
* Avoid wf* function MediaWiki dependencies.
* Don't bother with getLocalClusterInstance() caching for the CLI case.
* Give FileBackend a default 'resetOutputBuffer' callback.
Change-Id: I359da1ad77c62880ea799b65cd3a16ad673a64eb
|
|
|
|
| |
Change-Id: I219daffa67ff672bf5bd38921f4b1ca058d96b0f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* This avoids code duplication.
* Callers can safely start type-hinting StatusValue as well.
* Also moved the wrap() logic out of Status::__construct(), which
only wrap() was (and should have been) using. Use "static" as
well, so subclass behave properly.
* The docs and type-hints in /filebackend are updated as an example.
* A migration pattern is to inject a StatusValue wrapper
into the backend and use it on all returned statuses, so MediaWiki
will still get Status for message methods.
Change-Id: Iff9255f34870ea6b0c4b91f6ddc69eea95186aba
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added HTTP options headers parameter to streamFile().
* Refactored doStreamFile() to either call StreamFile::stream()
or delagate that to the subclass. SwiftFileBackend now relays
the full Swift response rather than manually making the headers.
This also makes Range headers easy to support.
* Made use of this in img_auth.php for performance on private wikis.
* Elimate stat call in streamFile() for Swift if "headers" is empty.
* Refactored StreamFile a bit to inject request headers instead
of using the $_SERVER global. A header options parameter is used
instead, which also supports Range.
* Removed now unused prepareForStream().
* Cleaned up streamFile() unit tests.
Change-Id: I2ccbcbca6caabb8cf65bd6b3084cede2e6ea628a
|
|
|
|
|
|
|
|
| |
In the age when we require PHP 5.5, pretending that mbstring emulation
is not slow and silly is silly.
Bug: T129435
Change-Id: Ic8235c9da9a926df63ec7388900c44eab454eebe
|
|
|
|
| |
Change-Id: I5d3a5eb8adea1ecbf136415bb9fd7a162633ccca
|
|
|
|
|
|
|
|
|
|
| |
Per wikitech-l consensus:
https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html
Notes:
* Disabled CallTimePassByReference due to false positives (T127163)
Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
|
|
|
|
|
|
| |
Closures support $this as of PHP 5.4
Change-Id: Ib11139ec81336710c22146f9ff714e8afd3aa2cf
|
|
|
|
| |
Change-Id: Iadab3d018c3559daf79be90edb23d131729bdb68
|
|
|
|
|
|
|
|
| |
This is in line with FSFileBackend and is provides the calling
loop of a way to know the listing failed, rather than just
giving incomplete information.
Change-Id: I34c66d9dbf84e5f33982d17e61364c1595d3e9f7
|
|
|
|
|
|
| |
The name is clearer and more consistent, with simpler arguments.
Change-Id: I7205a99ce033e8b086a52cd02c8a721e99c84b1e
|
|
|
|
| |
Change-Id: I479d1fc4f261bdcdc380404db0cb2f2397877759
|
|
|
|
| |
Change-Id: I9ba8fd5918877af6312b0854634bd36211438f00
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* This used to relay back *all* of the GET headers, which includes
things that are not changeable (Content-Length) or make no sense
(x-trans-id). Only send the actual HTTP/metadata headers. Oddly
enough sending garbage headers gives a 2XX response, but does
not actually change anything in Swift.
Bug: T105810
Change-Id: Id4829cf998a6d8763fd26d49cd8d9c16cf5527dd
|
| |
| |
| |
| |
| |
| |
| | |
Also remove confusing use of $wgMemc in LoadMonitorMySQL which
should always be the same as wfGetMainCache().
Change-Id: I4fb9d075a37d3d45af71a5026ccf2eb17f24d7b0
|
|/
|
|
|
|
| |
Makes it more convenient to use.
Change-Id: I1e11f7a759bd2816e47d1c2453cbe39b8f44b2f0
|
|
|
|
|
|
| |
* Added tests for the metadata headers portion of the code
Change-Id: I8ac65e31212b4cca4592f963e0ca5ad30e1349f7
|
|
|
|
| |
Change-Id: I2e3c3225c729e5220ca16f6ef4518da49e7f721c
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Icc075e424bdbed6868692ec734dff1e7d2003dd6
|
|/
|
|
|
|
|
| |
* If the POST failed but the sha1 was computed, then use
and cache that value rather than "false".
Change-Id: I42b53c823013ecd9b281406e3d533a21e0de7cfb
|
|
|
|
|
|
|
| |
* Just use the normal swift log instead
Bug: T105810
Change-Id: Ifa463e6298a1b57ab6a8d92f9defc744619d9fb6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
wfSuppressWarnings() and wfRestoreWarnings() were split out into a
separate library. All usages in core were replaced with the new
functions, and the wf* global functions are marked as deprecated.
Additionally, some uses of @ were replaced due to composer's autoloader
being loaded even earlier.
Ie1234f8c12693408de9b94bf6f84480a90bd4f8e adds the library to
mediawiki/vendor.
Bug: T100923
Change-Id: I5c35079a0a656180852be0ae6b1262d40f6534c4
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: T93141
Change-Id: I76efb0dc45a697c5fdfc50932e1198a6d663a445
|
|/
|
|
|
|
|
|
| |
Most are already, but some had differnet names. In PHP 5.4+ this is
redundant as they inherit automatically, but we need these for PHP 5.3
compatibility. Settle on "$that" to make these easier to find.
Change-Id: I0b68b2c550fde9c2da53d844421e34b8df0c42ed
|
|\ |
|
| |
| |
| |
| |
| |
| | |
A pure documentation patch. Should almost be a no-brainer. ;-)
Change-Id: I9bf4d6056f7cde193fe5882a04a7973af9b5a7f4
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I672051b8d04a5db4da8236deba48b266ec7dd9ab
|
|/ /
| |
| |
| | |
Change-Id: I76601a86e30f4984e3b1a8c8ec5ef5a0f652433a
|
| |
| |
| |
| | |
Change-Id: I31c81c78715048004fc8fca0f27d09c1fa71c118
|
|/
|
|
| |
Change-Id: If69de34a046f4f33fc57b93beaf264f522ce7386
|
|
|
|
|
|
| |
Bug: 73094
Change-Id: I9e45284e3cfd55bc34d87009387a2c1766e2db4a
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/991
|
|
|
|
| |
Change-Id: I59f698a024180410ffd0c02290f6d61db5999f12
|
|
|
|
|
|
|
| |
Some @param have a typo in the variable name,
some @param's were in wrong order.
Change-Id: Ie25806831027112b398f6f4a909c59147ac3a5fa
|
|
|
|
|
|
|
|
|
|
| |
- Swap "$variable type" to "type $variable"
- Added missing types
- Fixed spacing inside docs
- Makes beginning of @param/@return/@var/@throws in capital
- Changed some types to match the more common spelling
Change-Id: I41a84e8e1dec39170aa655250325ffc485eaeaef
|
|
|
|
|
|
|
|
|
|
| |
- Removed spaces after not operator (!)
- Removed spaces inside array index
- use tab as indent instead of spaces
- Add newline at end of file
- Removed spaces after casts
Change-Id: I9ba17c4385fcb43d38998d45f89cf42952bc791b
|
|
|
|
|
|
| |
* Error was "Fatal error: Call to a member function getSize() on a non-object"
Change-Id: Id1a1b1add9daee4402b2ed017b95c9a9f0e08170
|
|
|
|
|
|
|
|
| |
* Fixed bug where even using Swift/Azure on Windows
would disallow non-ASCII file names.
bug: 1780
Change-Id: I19ed72da0b099d35cae74fb08eeb22c113da1065
|
|
|
|
| |
Change-Id: I97a5cd1ed38508468122e33968b88adf2570a9a3
|
|
|
|
|
|
|
|
|
| |
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.
Change-Id: I8804ebe0922d3a414863b162a2110e0b9e49b80f
|
|
|
|
|
|
|
|
| |
- Added spaces after if/foreach/catch
- Added new line before end of file
- Added or removed spaces before/after parenthesis, comma
- Added spaces around string concat
Change-Id: I0590070f1b3542108e242730e8d9a3ba9831e94f
|
|
|
|
| |
Change-Id: Ic3b764363e91c3279d3dc017ddce630dae26bec5
|
|
|
|
| |
Change-Id: I6008384ea872d71dcd2d183186a4aee5048b4dd4
|
|
|
|
|
|
| |
* This was added by mistake in 2af7ad8 apparently
Change-Id: Ic4004428095953ce07e1e97da43748eba04f6639
|
|
|
|
|
|
|
|
|
|
|
|
| |
* This adds a new preloadFileStat() method to FileBackend.
* FileBackend::doOperations() makes use of this instead of primeFileCache().
The later was mostly useless due to the 'latest' flag, which stat entries
rarely had (and since they use add(), 'latest' ones do not override the
non-'latest' ones).
* Simplified primeContainerCache/primeFileCache to no longer accept
FileOp objects and made sure nothing passes those in anymore.
Change-Id: Iee3878cadd69c3a594c701c0aff81aab5f473de5
|
|
|
|
| |
Change-Id: Ic692c897493fe4388568930c2f4f861b89f2ff78
|