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

Custom SocketFactory is unable to parse connection properties

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • configuration
    • None

    Description

      The current implementation of the Utils class (https://github.com/mariadb-corporation/mariadb-connector-j/blob/master/src/main/java/org/mariadb/jdbc/internal/util/Utils.java#L124) makes it impossible for custom implementations of the SocketFactory to infer any information from the environment.

      An example is what the Google Cloud SQL connector (https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory) needs to do in order to rotate certificates of the connection. It can use connection string arguments such as `cloudSqlInstance` to fetch the correct values.

      The mysql driver and postgres driver all pass the properties down to the SocketFactory implementation, but not this driver. It would be nice to provide a way (maybe by trying a constructor with a Properties argument if that is present)

      This is blocking me from adding mariadb as a connector for the google cloud sql project.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            vinnyc Vinicius C Caldeira Carvalho
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.