Issue Details (XML | Word | Printable)

Key: DERBY-236
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Sunitha Kambhampati
Reporter: Sunitha Kambhampati
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Sane Mode and in our test environment, bootPassword gets written out in plain text to service.properties

Created: 27/Apr/05 01:51 AM   Updated: 05/Jun/05 01:45 AM
Return to search
Component/s: Store
Affects Version/s: 10.1.1.0
Fix Version/s: 10.1.1.0

Time Tracking:
Not Specified

Environment: All

Resolution Date: 14/May/05 02:37 AM


 Description  « Hide
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;
                    }
}
}

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.