Commit Graph

7 Commits (dfd8125aeb4a95df20041890dcffd50ba2592fee)

Author SHA1 Message Date
Lukas Reschke dfd8125aeb
Replace wrong PHPDocs 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
Joas Schilling 0215b004da
Update with robin 10 years ago
Joas Schilling ba87db3fcc
Fix others 10 years ago
Lukas Reschke aba539703c
Update license headers 10 years ago
Roeland Jago Douma dedf392751
Move \OC\Files to PSR-4 10 years ago
Björn Schießle 4f438eee56
preserve information if it is a rename operation or not 10 years ago
Bjoern Schiessle e4b451491b make sure that we always remove the file again from the cache after the version was created 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
Bjoern Schiessle 7b9d53b7ea no need to calculate the header size, if the first block contain a header we already know the size 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
Lukas Reschke 933f60e314 Update author information 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
Vincent Petry a9e0cfad8b Check delete permission before attemping copy+delete 10 years ago
Bjoern Schiessle 9dc759b4dc remember signature version and only set it on update to make sure that other 10 years ago
Vincent Petry 3736f13826 Check if partial cache entry or not in encryption wrapper 10 years ago
Lukas Reschke 5ccb9dfa7e Use database for keeping track of the version 10 years ago
Björn Schießle cf3a8f274f make it backward compatible to work with signed and un-signed files 10 years ago
Vincent Petry 19980be116 Fix part file partial cache logic in encryption code 10 years ago
Robin Appelman 6d321f5f6b Return a class from cache operations instead of an array 10 years ago
Thomas Müller 682821c71e Happy new year! 10 years ago
Björn Schießle 6d0a324144 make sure that we update the unencrypted size for the versions 10 years ago
Lukas Reschke 8f09d5b67c Update license headers 10 years ago
Bjoern Schiessle dd6cb67030 check if fopen was successful before continue 10 years ago
Bjoern Schiessle c7883b1769 only wrap source if fopen was successful 10 years ago
Morris Jobke b945d71384 update licence headers via script 10 years ago
Robin Appelman b1ce53f890 use a normal rename when moving from the same storage in the encryption wrapper 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 e51fe617d8 copy always file by file to encrypt/decrypt it if needed 11 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
Bjoern Schiessle 0736b45d92 get header size before we open the file to avoid locking exception 11 years ago
Joas Schilling 9cee8ff9f8 Only set is encrypted when encryption is enabled 11 years ago
Bjoern Schiessle 16d8014cdd set targetIsEncrypted to true if file cache indicates that we try to read a encrypted file 11 years ago
Bjoern Schiessle a2e2005e67 make sure that we always detect legacy files correctly 11 years ago
Joas Schilling 9c533342fc Perform the filesize only when the file exists 11 years ago
Joas Schilling 9b336765b6 Correctly check if the real file exists, otherwise try the part file 11 years ago
Morris Jobke f63915d0c8 update license headers and authors 11 years ago
Bjoern Schiessle 95602d4069 make sure that we always read the header from the original file 11 years ago
Bjoern Schiessle 0de59acb49 only request encryption module for files which are not excluded 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
Lukas Reschke 3d8ea96e55 Fix PHPDoc 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 ccbefb6e75 delete all file keys doesn't need the encryption module as parameter; implement rmdir; getFileKeyDir should also work for part files and complete directories 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 e4829a2358 update 'encrypted'-flag in file cache according to the storage settings 11 years ago