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

User passed from HikariConfig becomes null

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

            froggie Fabien Leconte created issue -
            froggie Fabien Leconte made changes -
            Field Original Value New Value
            froggie Fabien Leconte made changes -
            Description Hi,

            Whe'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 :

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

            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.
            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 :

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

            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.
            diego dupin Diego Dupin made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            diego dupin Diego Dupin made changes -
            Fix Version/s 1.3.2 [ 20602 ]
            diego dupin Diego Dupin made changes -
            Component/s Other [ 12201 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 72633 ] MariaDB v4 [ 134812 ]

            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.