Commit Graph

68 Commits (dd08f9320249d8ac7bf96f338a5be70d60af1dce)

Author SHA1 Message Date
Robin Appelman c6a48110bf
allways fall back to fopen for encryption wrapper 7 years ago
Bjoern Schiessle 5d0fa12e12
allow to disable encryption 7 years ago
Arthur Schiwon 38a90130ce
move log constants to ILogger 7 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 7 years ago
Morris Jobke e2974f1133
Simplify return statement 7 years ago
Morris Jobke 6bbea33133
Simplify ternary operator statements 7 years ago
Morris Jobke 2a38605545
Properly log the full exception instead of only the message 7 years ago
Morris Jobke 0eebff152a
Update license headers 8 years ago
Lukas Reschke dfd8125aeb
Replace wrong PHPDocs 8 years ago
Piotr M dc78f1251e
Optimize put - Dont try to fetch filecache for not existing filecache in encription 8 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 9 years ago
Joas Schilling ba87db3fcc
Fix others 9 years ago
Lukas Reschke aba539703c
Update license headers 9 years ago
Roeland Jago Douma dedf392751
Move \OC\Files to PSR-4 9 years ago
Björn Schießle 4f438eee56
preserve information if it is a rename operation or not 9 years ago
Bjoern Schiessle e4b451491b make sure that we always remove the file again from the cache after the version was created 9 years ago
Bjoern Schiessle 93ed965cbb fix creation of versions of encrypted files on external storages 9 years ago
Lukas Reschke c427bf3b5d Make sure that the encrypted version is set 9 years ago
Bjoern Schiessle 7b9d53b7ea no need to calculate the header size, if the first block contain a header we already know the size 9 years ago
Lukas Reschke 676041ba7e Ensure that stored version is at least 1 for cross-storage copy 9 years ago
Lukas Reschke 72c8187cbb Keep "encryptedVersion" when calling `\OC\Files\View::copy` 9 years ago
Lukas Reschke 933f60e314 Update author information 9 years ago
Bjoern Schiessle 834b51b83b recalculate unencrypted size if we assume that the size stored in the db is not correct 9 years ago
Vincent Petry a9e0cfad8b Check delete permission before attemping copy+delete 9 years ago
Bjoern Schiessle 9dc759b4dc remember signature version and only set it on update to make sure that other 9 years ago
Vincent Petry 3736f13826 Check if partial cache entry or not in encryption wrapper 9 years ago
Lukas Reschke 5ccb9dfa7e Use database for keeping track of the version 9 years ago
Björn Schießle cf3a8f274f make it backward compatible to work with signed and un-signed files 9 years ago
Vincent Petry 19980be116 Fix part file partial cache logic in encryption code 9 years ago
Robin Appelman 6d321f5f6b Return a class from cache operations instead of an array 9 years ago
Thomas Müller 682821c71e Happy new year! 9 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 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 10 years ago
Bjoern Schiessle 0736b45d92 get header size before we open the file to avoid locking exception 10 years ago
Joas Schilling 9cee8ff9f8 Only set is encrypted when encryption is enabled 10 years ago
Bjoern Schiessle 16d8014cdd set targetIsEncrypted to true if file cache indicates that we try to read a encrypted file 10 years ago
Bjoern Schiessle a2e2005e67 make sure that we always detect legacy files correctly 10 years ago
Joas Schilling 9c533342fc Perform the filesize only when the file exists 10 years ago
Joas Schilling 9b336765b6 Correctly check if the real file exists, otherwise try the part file 10 years ago
Morris Jobke f63915d0c8 update license headers and authors 10 years ago
Bjoern Schiessle 95602d4069 make sure that we always read the header from the original file 10 years ago
Bjoern Schiessle 0de59acb49 only request encryption module for files which are not excluded 10 years ago