Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1104

When SSL certificate is not setup correctly System.ArgumentException is thrown.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.7
    • Fix Version/s: 2.3.10
    • Component/s: library
    • Labels:
      None
    • Sprint:
      SDK50: Sample App, DNS-SRV

      Description

      System.ArgumentException : This buffer cannot be returned to the buffer manager because it is the wrong size.
      Parameter name: buffer

      at System.Runtime.InternalBufferManager.PooledBufferManager.ReturnBuffer(Byte[] buffer)
      at Couchbase.IO.SslConnection.<SendAsync>d__6.MoveNext() in C:\Users\jmorris\repos\couchbase-net-client\Src\Couchbase\IO\SslConnection.cs:line 101
      — End of stack trace from previous location where exception was thrown —
      at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
      at NUnit.Framework.AsyncSynchronizationContext.AsyncOperationQueue.InvokePendingOperations()
      at NUnit.Framework.AsyncSynchronizationContext.AsyncOperationQueue.InvokeAll()
      at NUnit.Framework.AsyncInvocationRegion.AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete(Object invocationResult)
      at NUnit.Framework.AsyncInvocationRegion.AsyncVoidInvocationRegion.WaitForPendingOperationsToComplete(Object invocationResult)
      at NUnit.Core.NUnitAsyncTestMethod.RunTestMethod()

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          jmorris Jeff Morris added a comment -

          If possible, a more descriptive error should be returned indicating the reason for the exception (SSL not configured).

          Show
          jmorris Jeff Morris added a comment - If possible, a more descriptive error should be returned indicating the reason for the exception (SSL not configured).
          Hide
          jmorris Jeff Morris added a comment -

          Push to 2.3.0

          Show
          jmorris Jeff Morris added a comment - Push to 2.3.0
          Hide
          mike.goldsmith Michael Goldsmith added a comment -

          This seems to fail earlier than SslConnection.SendAsync the Authenticate method also fails with an AuthenticationException. However, the Authenticate method explicitly catches and ignores AuthenticationExceptions. Jeff Morris do you know why we do this?

          We could also check for & throw AuthenticationExceptions in Send and SendAsync incase the connection experiences an auth problem after initial connection. If this happens, would we expect the connection to end / renegotiate or fail the request?

          Show
          mike.goldsmith Michael Goldsmith added a comment - This seems to fail earlier than SslConnection.SendAsync the Authenticate method also fails with an AuthenticationException. However, the Authenticate method explicitly catches and ignores AuthenticationExceptions. Jeff Morris do you know why we do this? We could also check for & throw AuthenticationExceptions in Send and SendAsync incase the connection experiences an auth problem after initial connection. If this happens, would we expect the connection to end / renegotiate or fail the request?
          Hide
          jmorris Jeff Morris added a comment - - edited

          I think that may be the bug...in general an auth exception should only occur when the socket connection is initiated. OTH, I am not sure how the client would react if the password was changed on the server after the client had authenticated. This is something we may want to investigate/document, but not likely directly related to this ticket (perhaps discuss this scenario in sdk meeting?).

          Show
          jmorris Jeff Morris added a comment - - edited I think that may be the bug...in general an auth exception should only occur when the socket connection is initiated. OTH, I am not sure how the client would react if the password was changed on the server after the client had authenticated. This is something we may want to investigate/document, but not likely directly related to this ticket (perhaps discuss this scenario in sdk meeting?).

            People

            • Assignee:
              mike.goldsmith Michael Goldsmith
              Reporter:
              jmorris Jeff Morris
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.