[CONJ-180] URLs using HA-modes is not recognized by driver Created: 2015-08-12  Updated: 2015-09-02  Resolved: 2015-09-01

Status: Closed
Project: MariaDB Connector/J
Component/s: Failover
Affects Version/s: 1.2.0
Fix Version/s: 1.2.2

Type: Bug Priority: Major
Reporter: Richard Strate Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Already fixed in CONJ-167

When using a connection URL with a specific HA mode (e.g. jdbc:mariadb:failover://host/db) this is not recognized by org.mariadb.jdbc.Driver.acceptsURL(String url).

This is a severe for DriverManager.getDriver(String url) as it relies on this method to function properly.

Current broken code that needs to accept a HA-URL:

class org.mariadb.jdbc.JDBCUrl

    static boolean acceptsURL(String url) {
        return (url != null) &&
                (url.startsWith("jdbc:mariadb://") || url.startsWith("jdbc:mysql://"));
 
    }



 Comments   
Comment by Richard Strate [ 2015-08-12 ]

This appears to already have been fixed in commit 7b629cda515db9308f278e2979221b8efed2b38e (CONJ-167) - just not released yet!
(I don't have permission to change status of the issue)

Generated at Thu Feb 08 03:13:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.