RED-5293: fixed jdbcUrl-check by adding URL check

This commit is contained in:
Ali Oezyetimoglu 2022-11-10 12:30:26 +01:00
parent 56963986be
commit 6b79c657ab

View File

@ -132,9 +132,9 @@ public class TenantManagementService {
@SneakyThrows
private void validateJdbcUrl(String jdbcUrl) {
// just create a URI object to check if the string is a valid URI
// just create a URL object to check if the string is a valid URL
new URI(jdbcUrl);
// same as above but with a URL object
// same as above but with a URI object
new URL(jdbcUrl);
}