Before I place a support call, I was hoping I could get these questions answered.
We have two V1000 units clustered.
Appliance Version 3.7.2
Mirth Connect Version 3.0.3.7171
Two issues:
1) We mapped a UNC path under network folders on the primary. It never replicated to the secondary.
2) I decrypt a password from a properties file. On the primary it works with no issues. On the secondary I receive the error :
com.mirth.commons.encryption.EncryptionException: javax.crypto.BadPaddingException: pad block corrupted
The code used to encrypt the password:
var props = org.apache.commons.configuration.PropertiesConfigu ration(new java.io.File(globalMap.get('globalPath') + 'conf/db/filename.properties'));
var encryptor = com.mirth.connect.donkey.server.Donkey.getInstance ().getEncryptor();
props.setProperty('pswd', encryptor.encrypt(props.getProperty('pswd')));
props.save();
The code used to decrypt the data:
function getEncryptedDBProperties(fname) {
var sFilename = globalMap.get('globalPath') + "conf/db/" + fname + ".properties";
var encryptor = com.mirth.connect.donkey.server.Donkey.getInstance ().getEncryptor();
var properties = org.apache.commons.configuration.PropertiesConfigu ration(new java.io.File(sFilename));
try {
globalMap.put(fname +'.driver', properties.getProperty('driver'));
globalMap.put(fname +'.db', properties.getProperty('db'));
globalMap.put(fname +'.user', properties.getProperty('user'));
globalMap.put(fname +'.pswd', encryptor.decrypt(properties.getProperty('pswd'))) ;
} catch (err) {
logger.error('ERROR getEncryptedDBProperties: ' + sFilename + ' : ' + err.message);
}
}
Can someone assist with these issues?
We have two V1000 units clustered.
Appliance Version 3.7.2
Mirth Connect Version 3.0.3.7171
Two issues:
1) We mapped a UNC path under network folders on the primary. It never replicated to the secondary.
2) I decrypt a password from a properties file. On the primary it works with no issues. On the secondary I receive the error :
com.mirth.commons.encryption.EncryptionException: javax.crypto.BadPaddingException: pad block corrupted
The code used to encrypt the password:
var props = org.apache.commons.configuration.PropertiesConfigu ration(new java.io.File(globalMap.get('globalPath') + 'conf/db/filename.properties'));
var encryptor = com.mirth.connect.donkey.server.Donkey.getInstance ().getEncryptor();
props.setProperty('pswd', encryptor.encrypt(props.getProperty('pswd')));
props.save();
The code used to decrypt the data:
function getEncryptedDBProperties(fname) {
var sFilename = globalMap.get('globalPath') + "conf/db/" + fname + ".properties";
var encryptor = com.mirth.connect.donkey.server.Donkey.getInstance ().getEncryptor();
var properties = org.apache.commons.configuration.PropertiesConfigu ration(new java.io.File(sFilename));
try {
globalMap.put(fname +'.driver', properties.getProperty('driver'));
globalMap.put(fname +'.db', properties.getProperty('db'));
globalMap.put(fname +'.user', properties.getProperty('user'));
globalMap.put(fname +'.pswd', encryptor.decrypt(properties.getProperty('pswd'))) ;
} catch (err) {
logger.error('ERROR getEncryptedDBProperties: ' + sFilename + ' : ' + err.message);
}
}
Can someone assist with these issues?
Mirth Appliance issues
0 commentaires:
Enregistrer un commentaire