Commit Graph

77 Commits (6151a0540b94dea0bb014b26e9ac6ea84d000f05)

Author SHA1 Message Date
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
Bjoern Schiessle dc39bda870 move/copy from storage 11 years ago
Bjoern Schiessle 83ed4ee5b6 unit tests 11 years ago
Bjoern Schiessle e7a3911c83 check if encryption is enbaled before we start moving keys 11 years ago
Thomas Müller 35a2fd3f89 Only return cached files if existing 11 years ago
Thomas Müller a96c2b8354 Only use cached files in case encryption is enabled - in any other case let the underlying storage handle this accordingly - refs #16061 #16062 and others 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
Bjoern Schiessle 27683f9442 fall back to the ownCloud default encryption module and aes128 if we read a encrypted file without a header 11 years ago
Joas Schilling d600955a51 Make getDefaultModuleId public and get module protected 11 years ago
Joas Schilling 1592be117a Use public interfaces for type hinting 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
Thomas Müller 32995ace1c move permission related code into getMetaData() 11 years ago
Thomas Müller 23f1bdc3d4 Introduce Storage::getMetaData() to allow storage implementations more control over the data array 11 years ago
Thomas Müller 92b60e36de Introduce Storage::getData() to allow storage implementations more control over the data array 11 years ago
Bjoern Schiessle e3d77c4b01 add migration script from old encryption to new one 11 years ago
Thomas Müller 967e882757 return size from cache in case the cache entry is marked as encrypted 11 years ago
Thomas Müller 387984a0d5 preserve filesize on rename after upload 11 years ago