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

pluggable authentication escaping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: Other
    • Labels:
      None

      Description

      Authentication can have first byte :

      • 0xff for ERROR_PACKET
      • 0xfe for authentication switch.
        When in a plugin authentication, those bytes are escaped to avoid any confusion :

      else if (packet_len > 0 && (*packet == 1 || *packet == 255 || *packet == 254))
        {
          /*
            we cannot allow plugin data packet to start from 255 or 254 -
            as the client will treat it as an error or "change plugin" packet.
            We'll escape these bytes with \1. Consequently, we
            have to escape \1 byte too.
          */
      

      The connector must remove unescape byte accordingly

      Documentation must be updated too to take care of this.

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            diego dupin Diego Dupin
            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.