Apache Commons logo Commons DBCP

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
76 9 0 0

org.apache.commons.dbcp2.DataSourceConnectionFactory

Bug Category Details Line Priority
new org.apache.commons.dbcp2.DataSourceConnectionFactory(DataSource, String, char[]) may expose internal representation by storing an externally mutable object into DataSourceConnectionFactory.userPassword MALICIOUS_CODE EI_EXPOSE_REP2 61 Medium

org.apache.commons.dbcp2.PStmtKey

Bug Category Details Line Priority
org.apache.commons.dbcp2.PStmtKey.getColumnIndexes() may expose internal representation by returning PStmtKey.columnIndexes MALICIOUS_CODE EI_EXPOSE_REP 887 Medium
org.apache.commons.dbcp2.PStmtKey.getColumnNames() may expose internal representation by returning PStmtKey.columnNames MALICIOUS_CODE EI_EXPOSE_REP 896 Medium

org.apache.commons.dbcp2.PoolingDriver

Bug Category Details Line Priority
org.apache.commons.dbcp2.PoolingDriver.pools is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 50 Medium

org.apache.commons.dbcp2.Utils

Bug Category Details Line Priority
org.apache.commons.dbcp2.Utils.DISCONNECTION_SQL_CODES is a mutable collection which should be package protected MALICIOUS_CODE MS_MUTABLE_COLLECTION_PKGPROTECT 61 Medium

org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS

Bug Category Details Line Priority
org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.getPasswordCharArray() may expose internal representation by returning DriverAdapterCPDS.userPassword MALICIOUS_CODE EI_EXPOSE_REP 404 Medium
org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.setPassword(char[]) may expose internal representation by storing an externally mutable object into DriverAdapterCPDS.userPassword MALICIOUS_CODE EI_EXPOSE_REP2 426 Medium

org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory

Bug Category Details Line Priority
new org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory(TransactionManager, XADataSource, String, char[]) may expose internal representation by storing an externally mutable object into DataSourceXAConnectionFactory.userPassword MALICIOUS_CODE EI_EXPOSE_REP2 78 Medium
org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory.setPassword(char[]) may expose internal representation by storing an externally mutable object into DataSourceXAConnectionFactory.userPassword MALICIOUS_CODE EI_EXPOSE_REP2 126 Medium