Vincent Petry
0aaf209c66
Prevent PHP request to get killed when using fclose callback ( #26775 )
* Prevent PHP request to get killed when using fclose callback
* Add ignore_user_abort everywhere where the time limit is set to 0
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
72a3ea6073
log a warning when trying to use a non basic fopen mode
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
efbe26f9c3
only update the cache if the storage operation succeeds
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Lukas Reschke
b7f866988e
Prevent endless loop in \OC\Files\View::createParentDirectories
\OC\Files\View::createParentDirectories was previously prone to an endless loop. If a path such as /foo/existingfile.txt/bar/foo was passed and existingfile.txt existed in foo the loop was never left and running until the PHP process timed out.
This commit changes the logic to a foreach loop over an array and additionally additional error handling using is_file.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Joas Schilling
558f169671
Move the validation into one place only
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Robin Appelman
89d37575a3
close the file handle after readfile
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
cbcdf69dc2
only query substorages to calculate the final mtime/size/etag lazily
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Joas Schilling
246bb9f33d
Move OC\Files\Storage\Shared to the right namespace
10 years ago
Robin Appelman
3a8e75a814
Allow 4byte unicode filenames on supported platforms
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
ba87db3fcc
Fix others
10 years ago
Thomas Müller
d2d99a91a0
fix swift primary object store test ( #25281 )
* Wait for socket to be open
* Fix call on null
* Allow DB access for MountProviderTest
Makes unit tests pass when using object store, since their FS access is
actually oc_filecache DB access. It is currently not possible to mock
or bypass the logic from "SharedMount::verifyMountPoint()" triggered by
this test.
10 years ago
karakayasemi
c8b7a059b4
Fire hooks for mkdir for folder upload
fromTmpFile function, usual mkdir call is only working for file's parent
directory. Does not care upper parent folders. I added a recursive
function that creates parent non-existing folders with usual mkdir.
10 years ago
blizzz
51fd2602a7
Revert "Downstream 2016-06-08"
10 years ago
Robin Appelman
f4831f4074
return success when deleting ghost files
10 years ago
Robin Appelman
67c2c85b05
allow deleting "ghost files" trough the View and Node api
10 years ago
Robin Appelman
14f96f86e7
return success when deleting ghost files
10 years ago
Robin Appelman
63408fa6ef
allow deleting "ghost files" trough the View and Node api
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Piotr Filiciak
6577bbe887
Code style and doc fix
10 years ago
Piotr Filiciak
9999e05660
Http Range requests support in downloads
Http range requests support is required for video preview
10 years ago
Roeland Jago Douma
dedf392751
Move \OC\Files to PSR-4
10 years ago
Petr Svoboda
465152023d
solves problem with moving files via WebDAV
When moving files via WebDAV I sometimes got
PHP Fatal error: Nesting level too deep - recursive dependency? in /var/www/owncloud/lib/private/files/view.php on line 729
This small change has fixed the problem for me
10 years ago
Stefan Weil
b1a856d7b7
lib: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
10 years ago
Joas Schilling
3d9863febc
Lock the mountpoint while removing
10 years ago
Lukas Reschke
c430f5ba53
Map Maci
10 years ago
Robin Appelman
e3b5639fc1
Block shares that dont have the correct source permissions
10 years ago
Robin Appelman
bdf51d9ea4
only trigger locking on lockingstorages
10 years ago
Robin Appelman
6d321f5f6b
Return a class from cache operations instead of an array
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Lukas Reschke
3e8a5f8a53
Typo in error message
10 years ago
Robin Appelman
300eb54c87
de-deplicate getUidAndFilename
10 years ago
Robin Appelman
fd2e1086c6
dont return an owner for files that don't exist
10 years ago
Robin Appelman
45d0396404
Cache sharing disabled in the view
10 years ago
Robin Appelman
2d9d0aedf8
Cache usermanager instance in view
10 years ago
Morris Jobke
a18c0983d5
Use TempManager instead of tmpFile
10 years ago
Lukas Reschke
61da3d530d
Verify return type
Can also be null. Silences another security warning...
10 years ago
Robin Appelman
19b2fe6a3a
Fix mimetype filter in getDirectoryContent
10 years ago
Robin Appelman
b025f07fb7
Make Cache\Updater per storage
10 years ago
Robin Appelman
888df3933d
take the etag of child mounts into account for the folder etag
this replaces shared etag propagation
10 years ago
Robin Appelman
d006a7c723
Fix scanning of incomplete folders
10 years ago
Robin Appelman
02f847bc66
use relative path
10 years ago
Robin Appelman
d5061b8139
fix fileinfo for non existing files
10 years ago
Robin Appelman
1736c70075
Some more cleanup for getFIleInfo/getDirectoryContent
10 years ago
Robin Appelman
02be8a3a12
Split getting cache entry and checking update to a seperate method
10 years ago
Robin Appelman
71b86c0ed4
Handle non existing users as owner in the view
10 years ago
Robin Appelman
331ef0e3c0
Add getOwner to FileInfo
10 years ago
Robin Appelman
c487f0f138
when a file is locked use old cache data
10 years ago
Robin Appelman
0a56313ca4
fix whitespace
10 years ago
Robin Appelman
fc7f7e5c37
only lock in getDirectoryContent if we need to update the cache
10 years ago