db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunitha Kambhampati (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-236) Sane Mode and in our test environment, bootPassword gets written out in plain text to service.properties
Date Tue, 26 Apr 2005 17:00:28 GMT
Sane Mode and in our test environment, bootPassword gets written out in plain text to service.properties
--------------------------------------------------------------------------------------------------------

         Key: DERBY-236
         URL: http://issues.apache.org/jira/browse/DERBY-236
     Project: Derby
        Type: Bug
  Components: Store  
    Versions: 10.1.0.0    
 Environment: All
    Reporter: Sunitha Kambhampati
     Fix For: 10.1.0.0


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;
                    }
				}
			}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message