Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-519

Add some toString() methods for debugging (never printing user names and passwords)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • None

    Description

      Add some toString() methods for debugging never printing user names and passwords:

      • org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS
      • org.apache.commons.dbcp2.cpdsadapter.PooledConnectionImpl
      • org.apache.commons.dbcp2.datasources.CPDSConnectionFactory
      • org.apache.commons.dbcp2.datasources.InstanceKeyDataSource
      • org.apache.commons.dbcp2.datasources.PerUserPoolDataSource
      • org.apache.commons.dbcp2.datasources.SharedPoolDataSource
      • org.apache.commons.dbcp2.datasources.UserPassKey (updated not to print passwords even though it was a char[] reference.)

      I went YAGNI here and only added what I needed.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: