Bjoern Schiessle
93ed965cbb
fix creation of versions of encrypted files on external storages
in order to create a 1:1 copy of a file if a version gets created
we need to store this information on copyBetweenStorage(). This
allows us to by-pass the encryption wrapper if we read the source file.
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Bjoern Schiessle
4719305e3b
cache result from parent folders
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Bjoern Schiessle
bf82015254
add some output to explain the pre-conditions for decrypt-all
10 years ago
Bjoern Schiessle
d697ea58a4
only check if the user exists if a user was added as parameter
10 years ago
Bjoern Schiessle
d2e90b6050
improved error message if user doesn't exists
10 years ago
Bjoern Schiessle
9bd4f2d41e
occ script to disable encryption and to decrypt all files again
10 years ago
Bjoern Schiessle
289e9130f3
make system root of key storage configurable
10 years ago
Bjoern Schiessle
a2e2005e67
make sure that we always detect legacy files correctly
11 years ago
Morris Jobke
f63915d0c8
update license headers and authors
11 years ago
Joas Schilling
e6681857d2
Check if the part files has keys when the original file does not
11 years ago
Thomas Müller
5dc5b7f86d
Catch NotFoundException and return no quota information which simply reflects the current state - no file storage has been initialized for the user.
11 years ago
Thomas Müller
259b6ac2c1
Fixing grammar - refs https://www.transifex.com/projects/p/owncloud/translate/#en_GB/lib/50330746
11 years ago
Bjoern Schiessle
7eb2b31e34
make sure that we always use the correct owner for both source and target
11 years ago
Joas Schilling
be1f319511
Correctly ignore remote shares aswell
11 years ago
Joas Schilling
50a31fa8f9
Add unit tests for wrapStorage
11 years ago
Joas Schilling
9a4040c7ca
Move the storage wrapping into a testable method
11 years ago
Bjoern Schiessle
5549641f1f
improve error messages displayed to the user
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
fef75e5417
remove part file extension before we read a filekey to reuse a existing key if possible, otherwise stuff like versioning will break
11 years ago
Bjoern Schiessle
38bceb0d74
distinguish between source and target mount point to allow copy/rename between system wide mount points and user specific mountpoints
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
9dd517071e
fix check if file is excluded from encryption
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
are in the storage wrapper the file cache isn't up-to-date
11 years ago
Jan-Christoph Borchardt
35292eb66c
rename to 'Default encryption module'
11 years ago
Bjoern Schiessle
e7a3911c83
check if encryption is enbaled before we start moving keys
11 years ago
Joas Schilling
d600955a51
Make getDefaultModuleId public and get module protected
11 years ago
Joas Schilling
a09df6d453
Verify that the encryption module exists before setting it
11 years ago
Bjoern Schiessle
24128d1384
only update share keys if the file was encrypted
11 years ago
Bjoern Schiessle
2990b0e07e
update share keys if a file is moved to a shared folder
11 years ago
Thomas Müller
0042bdd2e7
fix PHPDoc
11 years ago
Thomas Müller
225cde2183
pass KeyStorage via ctor
11 years ago
Thomas Müller
fc4127dd62
add $encryptionModuleId to methods of Keys/IStorage
11 years ago
Joas Schilling
4d238c3949
Fix display name of encryption modules
11 years ago
Thomas Müller
d9990c2b4e
Delay initialization of the OC\Encryption\Update - introducing 'OC\Encryption\HookManager'
11 years ago
Bjoern Schiessle
7d4b1b52d0
always create a new instance of the encryption module
11 years ago
Bjoern Schiessle
b25c06f576
detect system wide mount points correctly
11 years ago
Bjoern Schiessle
e3d77c4b01
add migration script from old encryption to new one
11 years ago
Joas Schilling
45575d0135
Check if the key exists, before trying to delete it
11 years ago
Thomas Müller
a4483243ac
fixing license headers - encryption code related
11 years ago
Thomas Müller
111fbabfb4
PHPDoc cleanup - clean code \o/
11 years ago
Bjoern Schiessle
3d7404fe68
add unit tests to the keystorage
11 years ago
Bjoern Schiessle
fe74a0cb4f
implement webdav copy
11 years ago
Thomas Müller
104d11ec4c
Fixing encryption storage wrapper tests
11 years ago
Bjoern Schiessle
fac7ec3fc4
fix re-shares with encryption
11 years ago
Bjoern Schiessle
a74ee67476
don't wrap share storages
11 years ago
Thomas Müller
664b2bb7af
cleaning up exception mess
11 years ago
Bjoern Schiessle
51302d5812
getUidAndFilename() always get uid from path
11 years ago