From 5800a8875731547c3b6e61ce0a128da836047250 Mon Sep 17 00:00:00 2001 From: frank Date: Tue, 29 Nov 2011 10:33:53 -0800 Subject: [PATCH] Bug 12220 - Unable to start management server due to "org.jasypt.exceptions.EncryptionOperationNotPossibleException" don't encrypt empty password status 12220: resolved fixed --- setup/bindir/cloud-setup-databases.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/bindir/cloud-setup-databases.in b/setup/bindir/cloud-setup-databases.in index 5b862fa25bc..c26db05431d 100755 --- a/setup/bindir/cloud-setup-databases.in +++ b/setup/bindir/cloud-setup-databases.in @@ -418,10 +418,12 @@ for example: def encryptDBPassword(): dbPassword = self.getDbProperty('db.cloud.password') + if dbPassword == '': return # Don't encrypt empty password if dbPassword == None: self.errorAndExit('Cannot find db.cloud.password in %s'%os.path.join(self.dbConfPath, 'db.properties')) self.putDbProperty('db.cloud.password', formatEncryptResult(encrypt(dbPassword))) usagePassword = self.getDbProperty('db.usage.password') + if usagePassword == '': return # Don't encrypt empty password if usagePassword == None: self.errorAndExit('Cannot find db.usage.password in %s'%os.path.join(self.dbConfPath, 'db.properties')) self.putDbProperty('db.usage.password', formatEncryptResult(encrypt(usagePassword)))