]> source.dussan.org Git - nextcloud-server.git/commit
Fixed encryption migration when entry is missing in DB
authorVincent Petry <pvince81@owncloud.com>
Fri, 25 Oct 2013 13:38:35 +0000 (15:38 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 25 Oct 2013 13:38:35 +0000 (15:38 +0200)
commite246e2b66973e99226f5db3544af33b5f665c6bb
tree7d0beb873ae24b9f5a11a5dca992248363ad4d4e
parent3fc232370e00df1d39638697daf8e8c1af8fe8dc
Fixed encryption migration when entry is missing in DB

When resetting the DB and some users still have encrypted files, the
migration state isn't read properly becaue the migration entries are
missing. This causes the wrong file size to be returned.

This fix inserts the missing migration entry when this condition is met.

Fixes #5541
apps/files_encryption/lib/util.php