SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
42 30 0 0

Files

Class Bugs
org.apache.shardingsphere.proxy.frontend.mysql.MySQLFrontendEngine 3
org.apache.shardingsphere.proxy.frontend.mysql.authentication.authenticator.impl.MySQLCachingSha2PasswordAuthenticator 1
org.apache.shardingsphere.proxy.frontend.mysql.authentication.authenticator.impl.MySQLClearPasswordAuthenticator 1
org.apache.shardingsphere.proxy.frontend.mysql.command.admin.MySQLComResetConnectionExecutor 1
org.apache.shardingsphere.proxy.frontend.mysql.command.admin.MySQLComSetOptionExecutor 2
org.apache.shardingsphere.proxy.frontend.mysql.command.admin.initdb.MySQLComInitDbExecutor 2
org.apache.shardingsphere.proxy.frontend.mysql.command.admin.ping.MySQLComPingExecutor 1
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLComStmtSendLongDataExecutor 2
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLServerPreparedStatement 4
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.close.MySQLComStmtCloseExecutor 2
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.execute.MySQLComStmtExecuteExecutor 2
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.prepare.MySQLComStmtPrepareExecutor 2
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.reset.MySQLComStmtResetExecutor 2
org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.fieldlist.MySQLComFieldListPacketExecutor 2
org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor 1
org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLMultiStatementsProxyBackendHandler 2

org.apache.shardingsphere.proxy.frontend.mysql.MySQLFrontendEngine

Bug Category Details Line Priority
org.apache.shardingsphere.proxy.frontend.mysql.MySQLFrontendEngine.getAuthenticationEngine() may expose internal representation by returning MySQLFrontendEngine.authenticationEngine MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
org.apache.shardingsphere.proxy.frontend.mysql.MySQLFrontendEngine.getCodecEngine() may expose internal representation by returning MySQLFrontendEngine.codecEngine MALICIOUS_CODE EI_EXPOSE_REP 43 Medium
org.apache.shardingsphere.proxy.frontend.mysql.MySQLFrontendEngine.getCommandExecuteEngine() may expose internal representation by returning MySQLFrontendEngine.commandExecuteEngine MALICIOUS_CODE EI_EXPOSE_REP 41 Medium

org.apache.shardingsphere.proxy.frontend.mysql.authentication.authenticator.impl.MySQLCachingSha2PasswordAuthenticator

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.shardingsphere.proxy.frontend.mysql.authentication.authenticator.impl.MySQLCachingSha2PasswordAuthenticator.authenticate(ShardingSphereUser, Object[]): String.getBytes() I18N DM_DEFAULT_ENCODING 43 High

org.apache.shardingsphere.proxy.frontend.mysql.authentication.authenticator.impl.MySQLClearPasswordAuthenticator

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.shardingsphere.proxy.frontend.mysql.authentication.authenticator.impl.MySQLClearPasswordAuthenticator.authenticate(ShardingSphereUser, Object[]): new String(byte[]) I18N DM_DEFAULT_ENCODING 37 High

org.apache.shardingsphere.proxy.frontend.mysql.command.admin.MySQLComResetConnectionExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.admin.MySQLComResetConnectionExecutor(ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComResetConnectionExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.admin.MySQLComSetOptionExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.admin.MySQLComSetOptionExecutor(MySQLComSetOptionPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComSetOptionExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.admin.MySQLComSetOptionExecutor(MySQLComSetOptionPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComSetOptionExecutor.packet MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.admin.initdb.MySQLComInitDbExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.admin.initdb.MySQLComInitDbExecutor(MySQLComInitDbPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComInitDbExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 40 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.admin.initdb.MySQLComInitDbExecutor(MySQLComInitDbPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComInitDbExecutor.packet MALICIOUS_CODE EI_EXPOSE_REP2 40 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.admin.ping.MySQLComPingExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.admin.ping.MySQLComPingExecutor(ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComPingExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLComStmtSendLongDataExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLComStmtSendLongDataExecutor(MySQLComStmtSendLongDataPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtSendLongDataExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLComStmtSendLongDataExecutor(MySQLComStmtSendLongDataPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtSendLongDataExecutor.packet MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLServerPreparedStatement

Bug Category Details Line Priority
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLServerPreparedStatement.getHintValueContext() may expose internal representation by returning MySQLServerPreparedStatement.hintValueContext MALICIOUS_CODE EI_EXPOSE_REP 63 Medium
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLServerPreparedStatement.getParameterColumnTypes() may expose internal representation by returning MySQLServerPreparedStatement.parameterColumnTypes MALICIOUS_CODE EI_EXPOSE_REP 65 Medium
org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLServerPreparedStatement.getParameterTypes() may expose internal representation by returning MySQLServerPreparedStatement.parameterTypes MALICIOUS_CODE EI_EXPOSE_REP 67 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.MySQLServerPreparedStatement(String, SQLStatementContext, HintValueContext) may expose internal representation by storing an externally mutable object into MySQLServerPreparedStatement.hintValueContext MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.close.MySQLComStmtCloseExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.close.MySQLComStmtCloseExecutor(MySQLComStmtClosePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtCloseExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.close.MySQLComStmtCloseExecutor(MySQLComStmtClosePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtCloseExecutor.packet MALICIOUS_CODE EI_EXPOSE_REP2 32 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.execute.MySQLComStmtExecuteExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.execute.MySQLComStmtExecuteExecutor(MySQLComStmtExecutePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtExecuteExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 62 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.execute.MySQLComStmtExecuteExecutor(MySQLComStmtExecutePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtExecuteExecutor.packet MALICIOUS_CODE EI_EXPOSE_REP2 62 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.prepare.MySQLComStmtPrepareExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.prepare.MySQLComStmtPrepareExecutor(MySQLComStmtPreparePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtPrepareExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 68 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.prepare.MySQLComStmtPrepareExecutor(MySQLComStmtPreparePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtPrepareExecutor.packet MALICIOUS_CODE EI_EXPOSE_REP2 68 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.reset.MySQLComStmtResetExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.reset.MySQLComStmtResetExecutor(MySQLComStmtResetPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtResetExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.reset.MySQLComStmtResetExecutor(MySQLComStmtResetPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComStmtResetExecutor.packet MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.fieldlist.MySQLComFieldListPacketExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.fieldlist.MySQLComFieldListPacketExecutor(MySQLComFieldListPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComFieldListPacketExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.fieldlist.MySQLComFieldListPacketExecutor(MySQLComFieldListPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComFieldListPacketExecutor.packet MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor(MySQLComQueryPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into MySQLComQueryPacketExecutor.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 56 Medium

org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLMultiStatementsProxyBackendHandler

Bug Category Details Line Priority
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLMultiStatementsProxyBackendHandler(ConnectionSession, SQLStatement, String) may expose internal representation by storing an externally mutable object into MySQLMultiStatementsProxyBackendHandler.connectionSession MALICIOUS_CODE EI_EXPOSE_REP2 86 Medium
new org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLMultiStatementsProxyBackendHandler(ConnectionSession, SQLStatement, String) may expose internal representation by storing an externally mutable object into MySQLMultiStatementsProxyBackendHandler.sqlStatementSample MALICIOUS_CODE EI_EXPOSE_REP2 87 Medium