Commit Graph

6 Commits (06e60f88c5adbe6190aafbd34ac641a76bebc37d)

Author SHA1 Message Date
Joas Schilling 30817fa319
Simplify the test 9 years ago
Piotr M dc78f1251e
Optimize put - Dont try to fetch filecache for not existing filecache in encription 9 years ago
Bjoern Schiessle 0f8fe77b3a
check if the file should really be encrypted before we update the file cache 9 years ago
Roeland Jago Douma f722640a32
Proper DI of config 9 years ago
Roeland Jago Douma 7656a8fa12
File getMock Files tests 9 years ago
Joas Schilling 94ad54ec9b Move tests/ to PSR-4 (#24731) 10 years ago
Thomas Müller 50e20e531e
Introduce isReadyForUser and verify in file transfer ownership - fixes #23786 10 years ago
Bjoern Schiessle 93ed965cbb fix creation of versions of encrypted files on external storages 10 years ago
Lukas Reschke c427bf3b5d Make sure that the encrypted version is set 10 years ago
Lukas Reschke 676041ba7e Ensure that stored version is at least 1 for cross-storage copy 10 years ago
Lukas Reschke 72c8187cbb Keep "encryptedVersion" when calling `\OC\Files\View::copy` 10 years ago
Bjoern Schiessle 834b51b83b recalculate unencrypted size if we assume that the size stored in the db is not correct 10 years ago
Björn Schießle 6d0a324144 make sure that we update the unencrypted size for the versions 10 years ago
Bjoern Schiessle e7232a848b versions should always use the keys of the original file, no need to create new one 10 years ago
Bjoern Schiessle 9bd4f2d41e occ script to disable encryption and to decrypt all files again 10 years ago
Bjoern Schiessle e51fe617d8 copy always file by file to encrypt/decrypt it if needed 10 years ago
Bjoern Schiessle 8c08dd0ac2 occ tool to encrypt all files 10 years ago
Bjoern Schiessle 51a67a54e0 always update file cache, the cache can handle partial data correctly if the file doesn't already exists in the file cache 11 years ago
Joas Schilling 42baeb36dc Add a unit test for the disabled encryption case 11 years ago
Bjoern Schiessle a2e2005e67 make sure that we always detect legacy files correctly 11 years ago
Joas Schilling 9b336765b6 Correctly check if the real file exists, otherwise try the part file 11 years ago
Bjoern Schiessle 95602d4069 make sure that we always read the header from the original file 11 years ago
Joas Schilling d3e3a84cae Move the helpful method to the TestCase class 11 years ago
Bjoern Schiessle c63f2286c0 copy keys before we move a file between storages to make sure that the new target file reuses the old file key, otherwise versions will break 11 years ago
Bjoern Schiessle efa674f10d only try to delete file keys if it is a valid path 11 years ago
Bjoern Schiessle 887be709f5 a new approach to display the error message 11 years ago
Bjoern Schiessle 0d5c7a11e2 use hooks to update encryption keys instead of the storage wrapper if a file gets renamed/restored, as long as we 11 years ago
Joas Schilling aea734aaf1 Fix missing types on doc block and deduplicate the method name 11 years ago
Bjoern Schiessle dc39bda870 move/copy from storage 11 years ago
Bjoern Schiessle 83ed4ee5b6 unit tests 11 years ago
Bjoern Schiessle 7089af96f2 make sure that we keep the correct encrypted-flag and the (unencrypted)size if a file gets copied 11 years ago
Thomas Müller 936d564058 fixes #15848 11 years ago
Joas Schilling 8f61fbb81f Fix new tests 11 years ago
Joas Schilling 411f7893bf Add test "operation on keys failed" 11 years ago
Joas Schilling 781cfff221 Deduplicate data provider and fix method visibility 11 years ago
Bjoern Schiessle 24128d1384 only update share keys if the file was encrypted 11 years ago
Bjoern Schiessle 2646bccb83 update share keys if file gets copied 11 years ago
Bjoern Schiessle 2990b0e07e update share keys if a file is moved to a shared folder 11 years ago
Thomas Müller 225cde2183 pass KeyStorage via ctor 11 years ago
Thomas Müller 987bc138df calling renameKeys() on directory level as well - fixes #15778 11 years ago
Thomas Müller fc4127dd62 add $encryptionModuleId to methods of Keys/IStorage 11 years ago
Bjoern Schiessle b25c06f576 detect system wide mount points correctly 11 years ago
Thomas Müller cbe30f740e remove calculateUnencryptedSize() - not needed 11 years ago
Thomas Müller 06a5a9d0c2 Fix mock object to return proper type 11 years ago
Thomas Müller 268d346b36 fixing unit tests 11 years ago
Thomas Müller fce42a3161 fixing unit test execution - test dummy module was behaving wrong 11 years ago
Thomas Müller 870c53ee37 fixing unit test execution 11 years ago
Thomas Müller 104d11ec4c Fixing encryption storage wrapper tests 11 years ago
Thomas Müller e0ab2c34ea update unit tests after ctor signature change of \OC\Encryption\Util 11 years ago
Thomas Müller a905f641b3 various fixes & start to unit test the encryption storage wrapper 11 years ago