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

protocol error when not setting database, indicating null authentication plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.3
    • Component/s: authentication
    • Labels:
      None
    • Support case ID:
      None

      Description

      When no database is set in the connection string, the driver will add a null byte in the authentication response packet.

      The server will decode that additional null byte as an empty plugin value, doing an unnecessary authentication switch request step.
      The second authentication will succeed but is an unnecessary round trip.

      In combination with maxscale, this cause connection to fail.

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: