Derby
  1. Derby
  2. DERBY-236

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.1.1.0
    • Fix Version/s: 10.1.1.0
    • Component/s: Store
    • Labels:
      None
    • Environment:
      All

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

      }
      }

        Activity

        Sunitha Kambhampati created issue -
        Sunitha Kambhampati made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Sunitha Kambhampati made changes -
        Assignee Sunitha Kambhampati [ skambha ]
        Sunitha Kambhampati made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Sunitha Kambhampati made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gavin made changes -
        Workflow jira [ 42022 ] Default workflow, editable Closed status [ 12797204 ]

          People

          • Assignee:
            Sunitha Kambhampati
            Reporter:
            Sunitha Kambhampati
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development