Description
In org.apache.derby.impl.store.RawStore
in boot(), if we run a test using our testharness and with sane jars, the boot password gets written out to service.properties in plain text. This is incorrect, should not happen even for a sane and test harness combination..
Code :-
if (SanityManager.DEBUG)
{
if (!databaseEncrypted)
{
// check for system property if running under sanity - this
// gives more test coverage for those that that hard code
// connection URL in the test or somehow go thru the test
// harness in a strange way.
String testEncryption =
PropertyUtil.getSystemProperty("testDataEncryption");
if (testEncryption != null)
{ properties.put(Attribute.DATA_ENCRYPTION, "true"); properties.put(Attribute.BOOT_PASSWORD, testEncryption); databaseEncrypted = true; } }
}