nextcloud/apps/encryption/lib/Command
Vincent Petry 32034af8c4
Fix encrypted version to 0 when finding unencrypted file
Whenever the command is run and a "legacy cipher" seems to be detected
when the legacy option is disabled, it's highly likely that the file is
actually unencrypted but the database contains a encrypted version
higher than 0 for some reason.

The command now detects this case and automatically sets the encrypted
version to 0 so that the file can be read again.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-08-26 14:26:40 +02:00
..
DisableMasterKey.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
EnableMasterKey.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
FixEncryptedVersion.php Fix encrypted version to 0 when finding unencrypted file 2021-08-26 14:26:40 +02:00
RecoverUser.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
ScanLegacyFormat.php Update ScanLegacyFormat.php 2020-11-20 19:42:37 +00:00