With master key encryption, share keys are redundant as you have one central key that can be used to decrypt all files. Version 10.2.1 corrects this behavior by dropping share keys for master key encryption, thereby increasing the performance dramatically, especially when sharing folders with many files as said keys do not have to be generated anymore for each file.
For current ownCloud running 10.2.0 with masterkey encryption, will it erase the previously generated shared keys when upgrading to 10.2.1 ? It seems occ ugprade is not required, so I’d suppose no. So, if not, one should drop the current shares and share again to avoid further performance issues ?
For anyone that might care, I’ve made some benchmarks about the speed of shares. My usecase is a 70MB folder with ~530 files (mostly pictures) shared with one user.
with ownCloud 10.2.0 the share takes around ~240s
with ownCloud 10.2.1 (after an upgrade from first install 10.2.0) the share takes ~1s
with ownCloud 10.2.1 the share also takes ~1s
I did only one test for each case, so it’s not very accurate, but the difference is huge anyway. Good job to the dev team !
I’m still a bit curious about the fact that no share keys are required now. When I go through the [user]/files_encryption folder of an ownCloud 10.2.1 I still find two keys for every file, fileKey and master_xxxxxxdb.shareKey. They’re all the same for each files, it was the same behavior in ownCloud 10.2.0 so I’m a bit puzzled. Has anyone some clarification ?