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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: