mirror of
https://github.com/apache/nifi.git
synced 2025-03-01 06:59:08 +00:00
NIFI-4708 This closes #2388. Correcting logic for determining decryption key in NiFiRegistryMode.groovy
Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
parent
953e922d32
commit
08c3910679
@ -371,7 +371,7 @@ class NiFiRegistryMode implements ToolMode {
|
||||
private String determineDecryptionKey() {
|
||||
if (rawOptions.oldPassword) {
|
||||
logger.debug("Attempting to generate decryption key (for migration) from old password.")
|
||||
encryptionKey = ToolUtilities.determineKey(TextDevices.defaultTextDevice(), null, rawOptions.oldPassword, true)
|
||||
decryptionKey = ToolUtilities.determineKey(TextDevices.defaultTextDevice(), null, rawOptions.oldPassword, true)
|
||||
} else if (rawOptions.oldKey) {
|
||||
decryptionKey = rawOptions.oldKey
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user