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

This commit is contained in:
Ali Oezyetimoglu 2022-11-10 12:19:42 +01:00
parent 3a2905200f
commit 56963986be

View File

@ -1,6 +1,7 @@
package com.iqser.red.service.peristence.v1.server.service;
import java.net.URI;
import java.net.URL;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.List;
@ -133,6 +134,8 @@ public class TenantManagementService {
private void validateJdbcUrl(String jdbcUrl) {
// just create a URI object to check if the string is a valid URI
new URI(jdbcUrl);
// same as above but with a URL object
new URL(jdbcUrl);
}