Aaron Schulz
c2acd8f642
Simplify and clean up FileBackend exceptions
...
Use standard exceptions for unexpected errors and remove
FileBackendException class, leaving FileBackendError. The
later is actually intended to be caught in some cases.
Change-Id: I735a525e0b14e518b2da5f18762e0f293064dfc2
2016-09-22 15:28:08 -07:00
Aaron Schulz
c11e38e3db
Dependency inject $wgTmpDirectory into FileBackend classes
...
Change-Id: I219daffa67ff672bf5bd38921f4b1ca058d96b0f
2016-09-21 04:00:49 +00:00
Aaron Schulz
8a573aa1f5
Move some FileBackend related classes to /libs
...
Change-Id: I0c3a84c2ed8b869519f4d38475a77539c24a88a8
2016-09-19 07:31:25 +00:00
Kunal Mehta
6e9b4f0e9c
Convert all array() syntax to []
...
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
2016-02-17 01:33:00 -08:00
Aaron Schulz
de290cd02d
Improve MIME detection in FileBackend
...
The content type detector will now inspect the file contents
to better handle extensionless files.
Also dependency inject the callback and make the default one
use FileInfo.
Change-Id: Iad59bf6c6a416b706f976a4c425763fd30e2debb
2015-11-02 00:36:54 +00:00
Aaron Schulz
28194278ea
Fix duplicate automatic file backend bug
...
Follow-up 8a3816529a
Bug: T114810
Change-Id: I2706c90077627b3df35fe530e0a919cfd0a75d78
2015-10-06 14:50:12 -07:00
Aaron Schulz
8a3816529a
Apply $wgReadOnly to all file backends
...
* Also added a wfConfiguredReadOnly() method
to avoid DB_SLAVE connections
Change-Id: I9e7ec95c4b2f763505166d2345d27abaef6257a3
2015-10-03 00:15:28 +00:00
Aaron Schulz
48cffdff82
Converted FileBackendStore to using the WAN cache
...
Bug: T93141
Change-Id: I76efb0dc45a697c5fdfc50932e1198a6d663a445
2015-04-30 01:30:38 +00:00
jenkins-bot
76dc198651
Merge "filebackend: cleaned up the FileBackend constructor"
2013-12-10 22:09:21 +00:00
Aaron Schulz
a0878fe2b4
filebackend: exception handling cleanups
...
* Split out FileBackendException class and reduced direct use of MWException
Change-Id: I325c1798b6d90972c12a5dccc37989af34d857f3
2013-12-07 23:22:07 -07:00
Aaron Schulz
2aa84651ca
filebackend: cleaned up the FileBackend constructor
...
* Added some b/c code with deprecation warnings
Change-Id: Ifceffbc0a37a223bcd7cd3dc60181fc85765bc46
2013-12-03 13:57:01 -08:00
Aaron Schulz
2f29c7551b
Revert "filebackend: cleaned up the FileBackend constructor"
...
Actually this messes with the implicit backend made for things like Math (when unconfigured), which uses the "new" operator.
This reverts commit 1f129a22cb .
Change-Id: I4c72c4f7c8b82e38df5496cf2b90fc9e19c40334
2013-12-03 20:40:24 +00:00
Aaron Schulz
1f129a22cb
filebackend: cleaned up the FileBackend constructor
...
* Moved some of the graph construction work to FileBackendGroup.
This helps the code in not depending on the rest of MW so much.
* Updated tests and FileBackendMultiwrite, which are the only things
directly constructing FileBackend objects.
Change-Id: I188a053c70ce088ce34613d5db40e6708e3ea9b7
2013-11-23 20:21:53 -08:00
Siebrand Mazeland
34a4bcbd48
Update documentation of file backend classes
...
Change-Id: I2113aecc53f1b361d9c276113bc0a9f7076cd21c
2013-11-23 19:24:43 +01:00
Siebrand Mazeland
a5c35215e2
Update formatting of file backend classes
...
Change-Id: Ie69c324e2f1ea0b8a654adee06ebda494cebd10c
2013-11-22 22:17:15 +01:00
Aaron Schulz
7242d938f3
Cleaned up variable/type order in docs.
...
* A few other minor doc cleanups and obvious type hints.
Change-Id: I454fad0c1942068b4f3632ebd1b605bfbb9dfe7c
2013-06-13 11:18:52 -07:00
umherirrender
1bfc8feb25
Fixed spacing in actions/cache/filebackend/filerepo/job folder
...
Added spaces before if, foreach
Added some braces for one line statements
Change-Id: Idb93d34e314e5f314223b79208968d6bcd30c40e
2013-04-20 19:18:13 +02:00
Reedy
c3e4057e06
Kill off numerous unused variables
...
Change-Id: I7039f1328f37ee669b694f73ee282602186bffd1
2013-03-08 02:36:24 +00:00
Jan Gerber
fa80d44451
Bug 43343 add zone "transcoded" for audio/video
...
to allow different storage strategies for thumbnails
and audio/video derivatives, add a new zone "transcoded".
Change-Id: I204c843dae4966b02f4807f15e6b0bac672f34dc
2013-02-05 05:53:57 +00:00
Aaron Schulz
ab0aaa6eba
[FileBackend] Added duplicate backend check.
...
* Not sure when this disappeared from before.
Change-Id: I69a8ce06b2f3bae0e65fb65b63440eb0a2e1128c
2013-01-27 22:36:28 -08:00
Aaron Schulz
a47892abef
[FileBackend] Moved filerepo/backend/ up to filebackend
...
Change-Id: I62ba23bd22e0f177fb48acaf6bcc38cbffacd3e7
2012-08-08 18:20:57 -07:00