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

User passed from HikariConfig becomes null

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.3.2
    • Other
    • None

    Description

      Hi,

      We're using the MariaDB driver with HikariCp. Unfortunately, we can't set "user" parameter using the HikariConfig object.

      When the pool initializes, we get this exception :

      org.mariadb.jdbc.internal.util.dao.QueryException: Could not connect: Access denied for user ''@'localhost' (using password: NO)

      After some debugging, it appears that the value is correctly set in the UrlParser object but is lost when "parseInternal" is called. The other params seems to be set later by Hikari so the only one missing is "user".

      I've attached a test case to the issue.

      Thanks.

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              froggie Fabien Leconte
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.