RED-5293: fixed jdbcUrl-check by adding URL check
This commit is contained in:
parent
3a2905200f
commit
56963986be
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user