Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11875

Thin client is unable to authenticate with long password

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: jdbc, odbc, thin client
    • Labels:
      None

      Description

      Token authentication could use long usernames/passwords, that leads to "Invalid handshake message"
      ClientListenerNioServerBuffer:

              if (cnt == msgSize) {
                  byte[] data0 = data;
      
                  reset();
      
                  return data0;
              }
              else {
                  if (checkHandshake && cnt > 0 && (msgSize > ClientListenerNioListener.MAX_HANDSHAKE_MSG_SIZE
                      || data[0] != ClientListenerRequest.HANDSHAKE))
                      throw new IgniteCheckedException("Invalid handshake message");
      
                  return null;
              }
      

      The reproducer is attached.

        Attachments

          Activity

            People

            • Assignee:
              isapego Igor Sapego
              Reporter:
              isapego Igor Sapego
              Reviewer:
              Sergey Chugunov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m