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 |
| 34 |
34 |
0 |
0 |
org.apache.shardingsphere.proxy.frontend.postgresql.PostgreSQLFrontendEngine
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.proxy.frontend.postgresql.PostgreSQLFrontendEngine.getCommandExecuteEngine() may expose internal representation by returning PostgreSQLFrontendEngine.commandExecuteEngine |
MALICIOUS_CODE |
EI_EXPOSE_REP |
39 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.authentication.authenticator.impl.PostgreSQLMD5PasswordAuthenticator
| Bug |
Category |
Details |
Line |
Priority |
| Found reliance on default encoding in org.apache.shardingsphere.proxy.frontend.postgresql.authentication.authenticator.impl.PostgreSQLMD5PasswordAuthenticator.md5Encode(String, String, byte[]): String.getBytes() |
I18N |
DM_DEFAULT_ENCODING |
44 |
High |
org.apache.shardingsphere.proxy.frontend.postgresql.command.PostgreSQLPortalContextRegistry
| Bug |
Category |
Details |
Line |
Priority |
| Public static org.apache.shardingsphere.proxy.frontend.postgresql.command.PostgreSQLPortalContextRegistry.getInstance() may expose internal representation by returning PostgreSQLPortalContextRegistry.INSTANCE |
MALICIOUS_CODE |
MS_EXPOSE_REP |
42 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.PostgreSQLCommand
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.proxy.frontend.postgresql.command.query.PostgreSQLCommand.getSqlStatementClasses() may expose internal representation by returning PostgreSQLCommand.sqlStatementClasses |
MALICIOUS_CODE |
EI_EXPOSE_REP |
137 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.Portal
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.Portal.getSqlStatement() may expose internal representation by returning Portal.sqlStatement |
MALICIOUS_CODE |
EI_EXPOSE_REP |
78 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.Portal(String, PostgreSQLServerPreparedStatement, List, List, ProxyDatabaseConnectionManager) may expose internal representation by storing an externally mutable object into Portal.databaseConnectionManager |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
94 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.Portal(String, PostgreSQLServerPreparedStatement, List, List, ProxyDatabaseConnectionManager) may expose internal representation by storing an externally mutable object into Portal.resultFormats |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
93 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLAggregatedBatchedStatementsCommandExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLAggregatedBatchedStatementsCommandExecutor(ConnectionSession, List) may expose internal representation by storing an externally mutable object into PostgreSQLAggregatedBatchedStatementsCommandExecutor.connectionSession |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
44 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLAggregatedBatchedStatementsCommandExecutor(ConnectionSession, List) may expose internal representation by storing an externally mutable object into PostgreSQLAggregatedBatchedStatementsCommandExecutor.packets |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
44 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLAggregatedCommandExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLAggregatedCommandExecutor(List) may expose internal representation by storing an externally mutable object into PostgreSQLAggregatedCommandExecutor.executors |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
31 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLBatchedStatementsExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLBatchedStatementsExecutor(ConnectionSession, PostgreSQLServerPreparedStatement, List) may expose internal representation by storing an externally mutable object into PostgreSQLBatchedStatementsExecutor.connectionSession |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
90 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLBatchedStatementsExecutor(ConnectionSession, PostgreSQLServerPreparedStatement, List) may expose internal representation by storing an externally mutable object into PostgreSQLBatchedStatementsExecutor.preparedStatement |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
92 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLServerPreparedStatement
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLServerPreparedStatement.getActualParameterMarkerIndexes() may expose internal representation by returning PostgreSQLServerPreparedStatement.actualParameterMarkerIndexes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
51 |
Medium |
| org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLServerPreparedStatement.getHintValueContext() may expose internal representation by returning PostgreSQLServerPreparedStatement.hintValueContext |
MALICIOUS_CODE |
EI_EXPOSE_REP |
47 |
Medium |
| org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLServerPreparedStatement.getParameterTypes() may expose internal representation by returning PostgreSQLServerPreparedStatement.parameterTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
49 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLServerPreparedStatement(String, SQLStatementContext, HintValueContext, List, List) may expose internal representation by storing an externally mutable object into PostgreSQLServerPreparedStatement.actualParameterMarkerIndexes |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
38 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLServerPreparedStatement(String, SQLStatementContext, HintValueContext, List, List) may expose internal representation by storing an externally mutable object into PostgreSQLServerPreparedStatement.hintValueContext |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
38 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLServerPreparedStatement(String, SQLStatementContext, HintValueContext, List, List) may expose internal representation by storing an externally mutable object into PostgreSQLServerPreparedStatement.parameterTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
38 |
Medium |
| org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLServerPreparedStatement.setRowDescription(PostgreSQLPacket) may expose internal representation by storing an externally mutable object into PostgreSQLServerPreparedStatement.rowDescription |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
40 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.bind.PostgreSQLComBindExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.bind.PostgreSQLComBindExecutor(PortalContext, PostgreSQLComBindPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComBindExecutor.connectionSession |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
40 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.bind.PostgreSQLComBindExecutor(PortalContext, PostgreSQLComBindPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComBindExecutor.packet |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
40 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.bind.PostgreSQLComBindExecutor(PortalContext, PostgreSQLComBindPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComBindExecutor.portalContext |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
40 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.close.PostgreSQLComCloseExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.close.PostgreSQLComCloseExecutor(PortalContext, PostgreSQLComClosePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComCloseExecutor.connectionSession |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
36 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.close.PostgreSQLComCloseExecutor(PortalContext, PostgreSQLComClosePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComCloseExecutor.packet |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
36 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.close.PostgreSQLComCloseExecutor(PortalContext, PostgreSQLComClosePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComCloseExecutor.portalContext |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
36 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.describe.PostgreSQLComDescribeExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.describe.PostgreSQLComDescribeExecutor(PortalContext, PostgreSQLComDescribePacket, ConnectionSession, ColumnTypeOIDResolver) may expose internal representation by storing an externally mutable object into PostgreSQLComDescribeExecutor.connectionSession |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
76 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.describe.PostgreSQLComDescribeExecutor(PortalContext, PostgreSQLComDescribePacket, ConnectionSession, ColumnTypeOIDResolver) may expose internal representation by storing an externally mutable object into PostgreSQLComDescribeExecutor.packet |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
76 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.describe.PostgreSQLComDescribeExecutor(PortalContext, PostgreSQLComDescribePacket, ConnectionSession, ColumnTypeOIDResolver) may expose internal representation by storing an externally mutable object into PostgreSQLComDescribeExecutor.portalContext |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
76 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.execute.PostgreSQLComExecuteExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.execute.PostgreSQLComExecuteExecutor(PortalContext, PostgreSQLComExecutePacket) may expose internal representation by storing an externally mutable object into PostgreSQLComExecuteExecutor.packet |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
35 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.execute.PostgreSQLComExecuteExecutor(PortalContext, PostgreSQLComExecutePacket) may expose internal representation by storing an externally mutable object into PostgreSQLComExecuteExecutor.portalContext |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
35 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.parse.PostgreSQLComParseExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.parse.PostgreSQLComParseExecutor(PostgreSQLComParsePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComParseExecutor.connectionSession |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
52 |
Medium |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.parse.PostgreSQLComParseExecutor(PostgreSQLComParsePacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComParseExecutor.packet |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
52 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.sync.PostgreSQLComSyncExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.sync.PostgreSQLComSyncExecutor(ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComSyncExecutor.connectionSession |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
32 |
Medium |
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.simple.PostgreSQLComQueryExecutor
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.proxy.frontend.postgresql.command.query.simple.PostgreSQLComQueryExecutor(PortalContext, PostgreSQLComQueryPacket, ConnectionSession) may expose internal representation by storing an externally mutable object into PostgreSQLComQueryExecutor.portalContext |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
78 |
Medium |