aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #17077 from owncloud/files-scan-absolute-pathMorris Jobke2015-07-021-0/+43
|\ | | | | fix getting mount points when passing a path to the files:scan command
| * add unit testRobin Appelman2015-06-291-0/+43
| |
* | Unlock first path on rename if second path is lockedVincent Petry2015-06-291-0/+33
| |
* | Merge pull request #17030 from owncloud/lock-posthooksJoas Schilling2015-06-291-1/+623
|\ \ | |/ |/| Keep shared lock for post-hooks
| * Remove test-specific method to make Bjoern and Joas happyVincent Petry2015-06-261-1/+1
| |
| * Keep shared locks in post hooksVincent Petry2015-06-251-1/+623
| | | | | | | | | | | | | | | | Instead of unlocking after the file operation, change exclusive locks back to shared locks during post hooks, and unlock after that. Also added unit tests to test locking in pre-hooks, during operation and post-hooks.
* | Correctly check if the real file exists, otherwise try the part fileJoas Schilling2015-06-261-8/+18
|/
* Merge pull request #17070 from owncloud/lock-movemountbugVincent Petry2015-06-241-0/+91
|\ | | | | Lock correct paths when moving mount
| * Fix locked paths in the moveMount caseVincent Petry2015-06-241-0/+91
| | | | | | | | | | | | | | When moving a mount point directly, the lock must be applied on the local mount point path instead of the attached storage root. Other operations will still lock the attached storage root.
* | Merge pull request #17045 from owncloud/enc_improvementsBjörn Schießle2015-06-231-3/+60
|\ \ | |/ |/| encryption improvements
| * make sure that we always read the header from the original fileBjoern Schiessle2015-06-231-3/+60
| |
* | Merge pull request #16657 from owncloud/view-emit-pathThomas Müller2015-06-221-0/+29
|\ \ | | | | | | emit hooks from a view as long as the path is inside the default root
| * | emit hooks from a view as long as the path is inside the default rootRobin Appelman2015-06-021-0/+29
| | |
* | | Workaround for empty dir deletion for SFTPVincent Petry2015-06-181-0/+7
| |/ |/| | | | | | | | | | | | | Explicitly clear the stat cache after deleting an empty folder to make sure it is properly detected as deleted in subsequent requests. This works around a problem with phpseclib where the folder is properly deleted remotely but the stat cache was not updated.
* | Normalize path in View's lock methodsVincent Petry2015-06-161-0/+22
| |
* | Rethrow LockedException with full pathVincent Petry2015-06-161-0/+39
| | | | | | | | | | Because the path is converted to md5 from the original exception, rethrow the exception with the correct full path
* | Add return value to lock methods and check it in testsJoas Schilling2015-06-121-8/+70
| |
* | Merge pull request #16158 from owncloud/mountprovider-after-setupThomas Müller2015-06-081-0/+42
|\ \ | | | | | | Call newly registered mount providers after the filesystem is setup
| * | phpdoc, strict and type hintsRobin Appelman2015-06-021-0/+7
| | |
| * | call mount providers that are registered after the filesystem is setupRobin Appelman2015-06-021-0/+35
| |/
* | Merge pull request #15895 from owncloud/dav-getremoteetagJoas Schilling2015-06-031-0/+18
|\ \ | | | | | | Get etag from remote OC server
| * | Disable update check test when testing wrappersVincent Petry2015-06-021-0/+3
| | | | | | | | | | | | | | | The checkUpdate test is intended for testing real storages, not wrappers.
| * | Added storage backend test for checkUpdateVincent Petry2015-06-021-0/+15
| |/ | | | | | | | | This helps testing whether checkUpdate properly returns false when no change exists
* / Move the helpful method to the TestCase classJoas Schilling2015-06-032-6/+6
|/
* fix testRobin Appelman2015-06-011-2/+2
|
* high level locking wipRobin Appelman2015-06-011-0/+27
|
* Merge pull request #16517 from owncloud/remove-logo-wideThomas Müller2015-05-291-6/+6
|\ | | | | replace logo-wide on share page as well with better icon + text
| * remove logo-wide from testsJan-Christoph Borchardt2015-05-211-6/+6
| |
* | Only use quota stream wrapper on "files"Vincent Petry2015-05-281-11/+23
| | | | | | | | | | Prevent using the quota stream wrapper on trashbin folders and other metadata folders
* | Merge pull request #16501 from owncloud/enc_fix_move_versions_between_storagesVincent Petry2015-05-281-4/+45
|\ \ | | | | | | [encryption] fix move versions between storages
| * | copy keys before we move a file between storages to make sure that the new ↵Bjoern Schiessle2015-05-221-4/+45
| |/ | | | | | | target file reuses the old file key, otherwise versions will break
* | Merge pull request #16452 from owncloud/enc_ftp_uploadBjörn Schießle2015-05-262-3/+84
|\ \ | | | | | | always write file, if fseek doesn't work we write the whole file
| * | test to simulate a non-seekable stream wrapperBjoern Schiessle2015-05-212-3/+84
| | |
* | | Get correct mimetype when moving and changing extensionVincent Petry2015-05-211-7/+19
| |/ |/| | | | | | | | | | | | | Fixes issue when restoring folders from trash cross-storage, as such folders have an extension ".d12345678". Fixes issue when moving folders between storages and at the same time changing their extension.
* | Merge pull request #16322 from owncloud/trash-viewMorris Jobke2015-05-201-12/+25
|\ \ | | | | | | dont go trough the view when moving to trash
| * | add tests for copyFromStorage with same storageRobin Appelman2015-05-191-12/+25
| | |
* | | Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-05-192-2/+0
| |/ |/| | | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* | Merge pull request #16412 from owncloud/jknockaert-patch-1Björn Schießle2015-05-181-2/+10
|\ \ | |/ |/| fix #16356
| * add a unit test to make sure that we don't try to read a file during a write ↵Bjoern Schiessle2015-05-181-2/+10
| | | | | | | | operation
* | Merge pull request #16399 from owncloud/enc_rmdir_fixClark Tomlinson2015-05-181-7/+74
|\ \ | |/ |/| [encryption] only try to delete file keys if it is a valid path
| * only try to delete file keys if it is a valid pathBjoern Schiessle2015-05-181-7/+74
| |
* | Merge pull request #15980 from owncloud/jknockaert-patch-1Björn Schießle2015-05-181-10/+11
|\ \ | | | | | | fix bug #15973
| * | correct testSeekjknockaert2015-05-181-4/+4
| | |
| * | work on testsjknockaert2015-05-181-10/+11
| | | | | | | | | Tests reorganised and extended
* | | a new approach to display the error messageBjoern Schiessle2015-05-182-3/+9
| |/ |/|
* | use hooks to update encryption keys instead of the storage wrapper if a file ↵Bjoern Schiessle2015-05-111-10/+1
| | | | | | | | | | | | gets renamed/restored, as long as we are in the storage wrapper the file cache isn't up-to-date
* | Fix missing types on doc block and deduplicate the method nameJoas Schilling2015-05-061-1/+1
| |
* | move/copy from storageBjoern Schiessle2015-05-061-9/+10
| |
* | unit testsBjoern Schiessle2015-05-061-41/+68
| |
* | make sure that we keep the correct encrypted-flag and the (unencrypted)size ↵Bjoern Schiessle2015-05-051-11/+41
|/ | | | if a file gets copied