Commit Graph

19 Commits (bbba7bc45acdbfb7d69edf7998db2cd8871682bd)

Author SHA1 Message Date
Christoph Wurst b80ebc9674
Use the short array syntax, everywhere 6 years ago
Christoph Wurst cc80339b39
Add typed create user events 6 years ago
Roeland Jago Douma ef4b59d341
More fixes 6 years ago
Roeland Jago Douma c007ca624f
Make phpunit8 compatible 6 years ago
Julius Härtl 6ee7286b41
Fix tests 7 years ago
Roeland Jago Douma 73e6eea57e
Fix tests 8 years ago
Bjoern Schiessle a0923d9ffb
reset encryptionVersion to '1' if a file was stream copied, because this means that we basically write the file from scratch 8 years ago
Joas Schilling 870023365c
Fix "Undefined method setExpectedException()" 8 years ago
Morris Jobke c733cdaa65
Use ::class in test mocks of encryption app 8 years ago
Morris Jobke 43e498844e
Use ::class in test mocks 8 years ago
Roeland Jago Douma 8b0051eb40
Fix encryption test 9 years ago
Bjoern Schiessle b43f6d295e
update file system tests to take the master key into account 9 years ago
Joas Schilling ec2f2b75be
Make sure we use a new encryption module all the time 9 years ago
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