Skip to content

Commit

Permalink
Fix JDBC driver check for username (#10416)
Browse files Browse the repository at this point in the history
  • Loading branch information
omida-bitquill authored Mar 14, 2023
1 parent 01ff18d commit 0b111a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static SSLContext getSSLContextFromJDBCProps(Properties properties) {
public static void handleAuth(Properties info, Map<String, String> headers)
throws SQLException {

if (info.contains(USER_PROPERTY) && !headers.containsKey(AUTH_HEADER)) {
if (info.containsKey(USER_PROPERTY) && !headers.containsKey(AUTH_HEADER)) {
String username = info.getProperty(USER_PROPERTY);
String password = info.getProperty(PASSWORD_PROPERTY, "");
if (StringUtils.isAnyEmpty(username, password)) {
Expand Down

0 comments on commit 0b111a1

Please sign in to comment.