Robin Appelman
7ab919256b
fix test
11 years ago
Robin Appelman
169031d1c5
fix factory test
11 years ago
Robin Appelman
e1f2a6df94
Allow setting the watcher policy as mount option
11 years ago
Robin Appelman
7adda88786
Copy mount options to the storage
11 years ago
Robin Appelman
fc027bceb7
Fix cache update when doing a rename that overwrites the target
11 years ago
Vincent Petry
232de3bdc0
Delete target file for unsuccessful copy/rename
11 years ago
Lukas Reschke
41e5850450
Prevent directory traversals in ctr of \OC\Files\View
This prevents a misusage of \OC\Files\View by calling it with user-supplied input. In such cases an exception is now thrown.
11 years ago
Bjoern Schiessle
21c45925fe
detect root of mountpoint also if the trailing slash is missed
11 years ago
Robin Appelman
2124540d1d
Dont remove a file from cache if the delete operation failed
11 years ago
Robin Appelman
ddee63fa00
Fix resolving paths for views rooted in a file
11 years ago
Robin Appelman
87a1b2bdc4
Preserve mtime when doing cross storage move
11 years ago
Robin Appelman
96dff341e2
Return valid fileinfo objects for part files
11 years ago
Thomas Müller
d648b548eb
skip testLongPath()
11 years ago
Joas Schilling
ea4c25609d
Replace uniqid calls with $this->getUniqueID so tests pass again on windows
11 years ago
Joas Schilling
bb540722cd
Use base class to reset the file mapper
11 years ago
Joas Schilling
6625d5c88f
Correctly restore previous root mount point after testing
11 years ago
Joas Schilling
a3a064fe96
Skip some more tests on Windows which just can not work at all
11 years ago
Robin Appelman
d26a427f92
Also propagate etag changes when the watcher finds a changed file
11 years ago
Robin Appelman
16cfca6a5f
Better reuse of cache data for getFolderContents
11 years ago
Clark Tomlinson
6de8531ace
fixing windows max depth test
11 years ago
Robin Appelman
3d92f963f4
Fix unit test
11 years ago
Vincent Petry
6e2358c3a6
Added hacky fix for long path cleanup routine
12 years ago
Thomas Müller
ad4ec414c9
use system function to recursive remove the directory used by temporary storage
12 years ago
Thomas Müller
da3974bcb2
- drop permissions table and related code
- the file/folder's permission is now stored in the file cache
- BackGroundWatcher has been removed - this has meanwhile be replaced by occ files:scan which can be executed in a cron jobs
- increase version to trigger database migration
12 years ago
Robin Appelman
f297bf14f9
Fix unit tests
12 years ago
Thomas Müller
a2e4bc8d33
# This is a combination of 2 commits.
# The first commit's message is:
adding tests for long paths
increment path field in database up to 4000 (maximum for Oracle - otherwise we could use php's 4096)
increment version to trigger database migration
adding unit test for too long path
# This is the 2nd commit message:
fix too long path
12 years ago
Lukas Reschke
b0381cfe12
Add tests for other types that PHP might cast
Addition to https://github.com/owncloud/core/pull/8572
12 years ago
Vincent Petry
bab8c1f8e5
Fixed getAbsolutePath case when path is "0"
Make sure to correctly check for string emptiness when the passed path
is "0".
12 years ago
Joas Schilling
ced2a4fcf2
Remove unneccessary statement from test
12 years ago
Joas Schilling
39bf700790
Update tests to test for create and update aswell
12 years ago
Jörn Friedrich Dreyer
39f2f564a9
use assertSame and assertNotSame for etag checks
12 years ago
Robin Appelman
2166683e3b
Allow setting the frequency of which the file watcher checks for updates
12 years ago
Robin Appelman
4113042c8f
remove duplicate test class
12 years ago
Vincent Petry
f642ad3961
Prevent deleting storage root
Storage mount points are not deletable, so make sure that the unlink
operation and its hooks aren't run in such cases.
Note that some storages might recursively delete their contents when
calling unlink on their root. This fix prevents that as well.
12 years ago
Robin Appelman
46b72cbff0
remove unneeded ; in comment
12 years ago
Robin Appelman
30e0b474f8
Add test for having utf8 filenames in the cache
12 years ago
Vincent Petry
614e4d485c
External storage space is now not counted in total space
Added argument to getFileInfo() to disable adding the size of
mountpoints to a directory's size.
Fixes #5924
12 years ago
Thomas Müller
bc6e352ccd
the path need to be normalized before putting it into resolvePath()
otherwise the returned internalPath will not match followup calls to e.g. Cache::getID()
12 years ago
Robin Appelman
7f8eeb0474
ensure the view's root is a subfolder of the the default root, not only starting the same
12 years ago
Robin Appelman
38c563dcdc
don't trigger the create hooks when if the file already exists for file_put_contents
12 years ago
Robin Appelman
a1d4eb1f95
files: when filtering search results, ensure results are children of the fakeroot not just path starting the same
12 years ago
Robin Appelman
bf9045f585
test case for hooks send from a non-default view
12 years ago
Bart Visscher
0c680b46cd
View test needs a dummy user
13 years ago
Jörn Friedrich Dreyer
73fb722a9e
add timeouts 3/30/90 to phpunit tests
13 years ago
Michael Gapczynski
fc5bce1f76
Fix undefined variable for copying empty folders
13 years ago
Michael Gapczynski
e9b71eed69
Add tests for copying/moving between storages
13 years ago
Robin Appelman
9738fae3cf
Emulate touch() for backends that don't support it
13 years ago
Robin Appelman
3e70d563a6
Cache: bookkeeping of storage_mtime
13 years ago
Robin Appelman
17bcea1585
Filesystem: add View->getPath to the cache api
13 years ago
Robin Appelman
7330fcf5e8
Cache: make mounts overwrite existing folders, prevents duplicate entries
13 years ago