Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-180

URLs using HA-modes is not recognized by driver

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.2
    • Failover
    • 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://"));
       
          }

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            ricstra-polystar Richard Strate
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.