Côme Chilliet
c0ce272e9c
chore: Migrate away from OC::$server->getLogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pirms 3 mēnešiem
Faraz Samapoor
e7cc7653b8
Refactors "strpos" calls in lib/private to improve code readability.
Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
pirms 1 gada
Joas Schilling
98ed72b3ed
Revert "fix(performance): Do not set up filesystem on every call"
pirms 1 gada
Anna Larch
5d4efb4d5f
Do not set up filesystem on every call
Also remove old Oc_FileChunking logis that produced GC- collectable chunks
Signed-off-by: Anna Larch <anna@nextcloud.com>
pirms 1 gada
Côme Chilliet
f5c361cf44
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pirms 1 gada
Côme Chilliet
51f04ed514
Move away from deprecated ILogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pirms 2 gadiem
Carl Schwan
7d272c54d0
Add a built-in profiler inside Nextcloud
The webui is provided by a seperate application named profiler
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
pirms 2 gadiem
J0WI
3b656446af
Introduce ISecureRandom::CHAR_ALPHANUMERIC
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
pirms 2 gadiem
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pirms 3 gadiem
Roeland Jago Douma
618805b14f
Fix RedundantPropertyInitializationCheck
For #25839
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pirms 3 gadiem
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 3 gadiem
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Robin Appelman
07e5b30b90
remove unneeded is_dir from file cache gc
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 6 gadiem
Arthur Schiwon
38a90130ce
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pirms 6 gadiem
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Sebastian Wessalowski
e399097e3a
Remove deprecated OC_User::isLoggedIn
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
pirms 7 gadiem
Joas Schilling
ba87db3fcc
Fix others
pirms 7 gadiem
Lukas Reschke
aba539703c
Update license headers
pirms 8 gadiem
Vincent Petry
c9b26d065b
Move cache chunk TTL value to FileChunking class
This makes it less generic and only used for actual file chunking
pirms 8 gadiem
Frederik Kammer
299520b322
Add config value for cache gc ttl
pirms 8 gadiem
Vincent Petry
e0af5263fb
Allow chunk GC mtime tolerance for unfinished part chunks
Whenever part chunks are written, every fwrite in the write loop will
reset the mtime to the current mtime. Only at the end will the touch()
operation set the mtime to now + ttl, in the future.
However the GC code is expecting that every chunk with mtime < now are
old and must be deleted. This causes the GC to sometimes delete part
chunks in which the write loop is slow.
To fix this, a tolerance value is added in the GC code to allow for
more time before a part chunk gets deleted.
pirms 8 gadiem
Roeland Jago Douma
d9007ccacf
Move \OC\Cache to PSR-4
pirms 8 gadiem
Thomas Müller
682821c71e
Happy new year!
pirms 8 gadiem
Roeland Jago Douma
98c4951f45
getLowStrengthGenerator does not do anything anymore
pirms 8 gadiem
Joas Schilling
e2cfcd992c
Allow storage wrappers to through a forbidden exception with retry information
pirms 8 gadiem
Morris Jobke
b945d71384
update licence headers via script
pirms 8 gadiem
Thomas Müller
d3ac73c0c9
Remove OC_Log
pirms 9 gadiem
Vincent Petry
dd4de48418
Do not try clearing locked files in cache folder
pirms 9 gadiem
Thomas Müller
fc474de573
Fixing "ImportController::__construct() must implement interface OCP\\ICache, instance of OC\\Cache\\File given"
pirms 9 gadiem
Morris Jobke
f63915d0c8
update license headers and authors
pirms 9 gadiem
Lukas Reschke
70ca0102f5
Fix PHPDoc annotations
pirms 9 gadiem
Thomas Müller
97a3d8c313
Fix login handler for file cache - fixes #16795
pirms 9 gadiem
Thomas Müller
5e60795962
Bring back OC\Cache\File - fixes #16760
pirms 9 gadiem
Arthur Schiwon
3de7f58321
remove file cache classes and its tests
pirms 9 gadiem
Thomas Müller
1b42b492dc
kill OC_FileProxy :boom:
pirms 9 gadiem
Jenkins for ownCloud
b585d87d9d
Update license headers
pirms 9 gadiem
Vincent Petry
b495ca4924
Added part files for when writing chunks
Whenever a chunk is being written, it is now written to a part file
first. This is to avoid a concurrent chunk upload to believe that the
former chunk already exists, even though it's not fully written.
This makes sure that the final file assembly is only done when all
chunks were successfully written.
Also added an extra unique id to chunk parts in case the same chunk is
uploaded twice concurrently.
pirms 9 gadiem
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
pirms 9 gadiem
Jenkins for ownCloud
6a1a4880f0
Updating license headers
pirms 9 gadiem
Robin Appelman
4a9c64e96b
Only make sure the cache directory exists when we use it
pirms 9 gadiem
Jörn Friedrich Dreyer
86935fab17
readd is_file
pirms 9 gadiem
Arthur Schiwon
ded8cc47cf
:camel:case
pirms 9 gadiem
Jörn Friedrich Dreyer
2d8f57a1ea
check if cache files are readable
pirms 9 gadiem
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
pirms 10 gadiem
Bart Visscher
a4b7f5155f
Fix PHPdoc in lib/private
using scrutinizer patch
pirms 10 gadiem
Vincent Petry
ab56f69416
Do not expire chunks while checking for their existence
The expiration should be done by the gc() function on login, not while
isComplete() is calling hasKey() for every chunk.
pirms 10 gadiem
Vincent Petry
10c9b8eb99
Cache folder is now configurable
When using an external cache folder, it is automatically mounted in
FileSystem::initFileSystem so that any app can use it transparently
by creating a view on the "/$user/cache" directory.
pirms 10 gadiem
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
pirms 10 gadiem