aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/storage
Commit message (Collapse)AuthorAgeFilesLines
* Move Test\Files\Storage\Wrapper\EncodingTest to PSR-4Joas Schilling2016-05-251-203/+0
|
* Merge pull request #24349 from owncloud/nfd-storagewrapperVincent Petry2016-05-231-0/+203
|\ | | | | Add wrapper for NFD encoding workaround
| * Fixes for encoding wrapperVincent Petry2016-05-201-0/+49
| | | | | | | | | | | | Improved label Fixed rename/copy/moveFromStorage/copyFromStorage and added tests Improved findPathToUse algo
| * Add wrapper for NFD encoding workaroundVincent Petry2016-05-201-0/+154
| |
* | Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-2013-2548/+0
|/ | | | | | | | | | | | | | | | | | | | * Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
* Fix namespaces and class names in tests/lib/files/Joas Schilling2016-05-191-0/+1
|
* Prevent concurrent availability checksRobin McCorkell2016-04-261-2/+5
|
* add testsRobin Appelman2016-04-261-0/+14
|
* Introduce isReadyForUser and verify in file transfer ownership - fixes #23786Thomas Müller2016-04-151-4/+5
|
* tests: Fix typos (found by codespell)Stefan Weil2016-04-061-2/+2
| | | | | | Fix also a small grammar issue. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Merge pull request #23707 from owncloud/make-sure-that-encrypted-version-is-setFrank Karlitschek2016-03-311-5/+19
|\ | | | | Make sure that the encrypted version is set
| * Make sure that the encrypted version is setLukas Reschke2016-03-311-5/+19
| | | | | | | | | | | | | | | | The code path called when using external storage with WebDAV is using `\OC\Files\Storage\Wrapper\Encryption::getMetaData` which did not contain the actual encrypted version inside the cache entry version. This lead to the following: 1. User uploaded a file 2. File is created and `\OC\Files\Storage\Wrapper\Encryption::getMetaData` is called. It has an empty `encryptedVersion` but sets `encrypted` to either `true` or `false`. 3. The call when updating the file cache will use the old version.
* | fix creation of versions of encrypted files on external storagesBjoern Schiessle2016-03-311-13/+31
|/ | | | | | in order to create a 1:1 copy of a file if a version gets created we need to store this information on copyBetweenStorage(). This allows us to by-pass the encryption wrapper if we read the source file.
* Ensure that stored version is at least 1 for cross-storage copyLukas Reschke2016-03-161-0/+42
| | | | | | | | | In case of a move operation from an unencrypted to an encrypted storage the old encrypted version would stay with "0" while the correct value would be "1". Thus we manually set the value to "1" for those cases. See also https://github.com/owncloud/core/issues/23078
* Keep "encryptedVersion" when calling `\OC\Files\View::copy`Lukas Reschke2016-03-031-6/+21
| | | | | | | | | | | | | | | | When calling `\OC\Files\View::copy` we should also keep the version to ensure that the file will always have the correct version attached and can be successfully decrypted. To test this the following steps are necessary (from https://github.com/owncloud/core/issues/22781#issuecomment-191328982): 1. setup a new ownCloud 9.0 beta2 2. enable encryption 2. upload a docx (5.7MB large) 3. upload the same file again and overwrite the existing file 4. I can download the original file and the first version 5. I restore the first version 6. restored version can no longer be downloaded with the error described above The manual cache operation in `\OCA\Files_Versions\Storage` is unfortunately necessary since `\OCA\Files_Versions\Storage::copyFileContents` is not using `\OCP\Files\Storage::moveFromStorage` in the case when an object storage is used. Due to the workaround added in https://github.com/owncloud/core/commit/54cea05271b887f1c8062c034741df869bc0f055 the stream is directly copied and thus bypassing the FS.
* recalculate unencrypted size if we assume that the size stored in the db is ↵Bjoern Schiessle2016-02-231-1/+157
| | | | not correct
* fix getNodeForPath for non existing part filesRobin Appelman2016-02-111-0/+6
|
* remove unused Storage->getLocalFolderRobin Appelman2016-02-052-15/+0
|
* fix quota wrapperRobin Appelman2016-01-141-1/+3
|
* Merge pull request #21216 from owncloud/fopen-statcacheThomas Müller2015-12-281-0/+13
|\ | | | | Clear SMB statcache after fopen
| * test for statcache after fopenRobin Appelman2015-12-151-0/+13
| |
* | Use TempManager instead of tmpFolderMorris Jobke2015-12-185-5/+5
| |
* | Removed deprecated function OC_User::deleteUserRoeland Jago Douma2015-12-171-2/+4
| | | | | | | | Replaced with proper OCP calls
* | Removed deprecated private OC_User::createUserRoeland Jago Douma2015-12-171-2/+2
|/ | | | | All function calls are replaced with the recommended (which was already the body of the function).
* Adding more DB groups to test suitsThomas Müller2015-11-305-0/+35
| | | | Adding more DB groups to test suits
* Further unit test suite tweatsThomas Müller2015-11-301-0/+79
|
* make sure that we update the unencrypted size for the versionsBjörn Schießle2015-11-041-0/+96
|
* versions should always use the keys of the original file, no need to create ↵Bjoern Schiessle2015-10-011-0/+23
| | | | new one
* add is* storage testsJörn Friedrich Dreyer2015-09-231-0/+25
|
* Replaces if ($file === '.' || $file === '..') by ↵Martin2015-09-221-1/+1
| | | | if(\OC\Files\Filesystem::isIgnoredDir($file)). Eases to find where this operation is used.
* occ script to disable encryption and to decrypt all files againBjoern Schiessle2015-09-151-1/+1
|
* copy always file by file to encrypt/decrypt it if neededBjoern Schiessle2015-08-261-53/+8
|
* occ tool to encrypt all filesBjoern Schiessle2015-08-261-1/+1
|
* Merge pull request #13641 from owncloud/cache-storage-statusVincent Petry2015-08-071-0/+149
|\ | | | | Store storage availability in database
| * Store storage availability in databaseRobin McCorkell2015-07-201-0/+149
| | | | | | | | | | | | | | | | Storage status is saved in the database. Failed storages are rechecked every 10 minutes, while working storages are rechecked every request. Using the files_external app will recheck all external storages when the settings page is viewed, or whenever an external storage is saved.
* | always update file cache, the cache can handle partial data correctly if the ↵Bjoern Schiessle2015-07-311-3/+5
| | | | | | | | file doesn't already exists in the file cache
* | Add a unit test for the disabled encryption caseJoas Schilling2015-07-231-1/+60
|/
* make sure that we always detect legacy files correctlyBjoern Schiessle2015-07-171-5/+115
|
* Merge pull request #16924 from owncloud/copy-recursive-polyfillThomas Müller2015-07-061-0/+46
|\ | | | | add recursive copy polyfill for storage backends
| * add unit testsRobin Appelman2015-07-031-0/+46
| |
* | Remove file mapper - was only use in Windows and never worked properlyThomas Müller2015-07-032-88/+0
| |
* | Correctly check if the real file exists, otherwise try the part fileJoas Schilling2015-06-261-8/+18
| |
* | 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
| |/
* / 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.
* 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-031-1/+1
|/
* 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