Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/#semantic-versioning-200).

### :bug: Fixed
- Avoid encoding MariaDB connection properties ([PR #1237](https://github.com/aws/aws-advanced-jdbc-wrapper/pull/1237)).

## [2.5.4] - 2024-12-23
### :bug: Fixed
- Avoid setting ignoreNewTopologyRequestsEndTimeNano on initial connection ([PR #1221](https://github.com/aws/aws-advanced-jdbc-wrapper/pull/1221)).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

package software.amazon.jdbc.util;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.sql.SQLException;
import java.util.Enumeration;
import java.util.Properties;
Expand Down Expand Up @@ -95,16 +92,10 @@ public static String buildUrl(final String jdbcProtocol,
queryBuilder.append("&");
}
final String propertyValue = copy.getProperty(propertyName);
try {
queryBuilder
.append(propertyName)
.append("=")
.append(URLEncoder.encode(propertyValue, StandardCharsets.UTF_8.toString()));
} catch (final UnsupportedEncodingException e) {
throw new SQLException(
Messages.get("ConnectionUrlBuilder.failureEncodingConnectionUrl"),
e);
}
queryBuilder
.append(propertyName)
.append("=")
.append(propertyValue);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ ConnectionProvider.unsupportedHostSpecSelectorStrategy=Unsupported host selectio

# Connection Url Builder
ConnectionUrlBuilder.missingJdbcProtocol=Missing JDBC protocol and/or host name. Could not construct URL.
ConnectionUrlBuilder.failureEncodingConnectionUrl=Failed to encode connectionURL properties.

# Connection Url Parser
ConnectionUrlParser.protocolNotFound=Url should contain a driver protocol. Protocol is not found in url: ''{0}''
Expand Down
Loading