aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/storage/wrapper
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-206-1480/+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
|
* Introduce isReadyForUser and verify in file transfer ownership - fixes #23786Thomas Müller2016-04-151-4/+5
|
* 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 quota wrapperRobin Appelman2016-01-141-1/+3
|
* Use TempManager instead of tmpFolderMorris Jobke2015-12-182-2/+2
|
* Adding more DB groups to test suitsThomas Müller2015-11-301-0/+7
| | | | Adding more DB groups to test suits
* 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
* 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
|
* Correctly check if the real file exists, otherwise try the part fileJoas Schilling2015-06-261-8/+18
|
* make sure that we always read the header from the original fileBjoern Schiessle2015-06-231-3/+60
|
* Move the helpful method to the TestCase classJoas Schilling2015-06-031-1/+1
|
* 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
* 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 #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
| |
* | a new approach to display the error messageBjoern Schiessle2015-05-181-2/+7
|/
* 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
* fixes #15848Thomas Müller2015-04-271-0/+3
|
* Fix new testsJoas Schilling2015-04-271-4/+1
|
* Add test "operation on keys failed"Joas Schilling2015-04-241-7/+10
|
* Deduplicate data provider and fix method visibilityJoas Schilling2015-04-241-18/+14
|
* only update share keys if the file was encryptedBjoern Schiessle2015-04-241-2/+4
|
* update share keys if file gets copiedBjoern Schiessle2015-04-231-16/+67
|
* update share keys if a file is moved to a shared folderBjoern Schiessle2015-04-231-6/+53
|
* pass KeyStorage via ctorThomas Müller2015-04-221-26/+1
|
* calling renameKeys() on directory level as well - fixes #15778Thomas Müller2015-04-221-2/+15
|