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

FIT KV: LookupInMixed returns result instead of exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.5.0
    • None
    • None
    • None

    Description

      The test "exceptionsMixedLookup" executes 3 LookupIn operations and expects 3 exceptions back. The SDK instead returns 1 result and 2 of the correct exceptions.

      The specific operation succeeding when it should fail is:

      List.of(LookupInSpec.newBuilder()
                                          .setExists(ExistsOperation.newBuilder()
                                                  .setPath("nestedObject..content")
                                                  .build())
                                          .setContentAs(ContentAs.newBuilder().setAsBoolean(true).build())
                                          .build()
      

      The returned result is:

      results {
          content_as_result {
            content {
              content_as_bool: false
            }
          }
          exists_result {
            value: false
          }
        }
      

      Instead of SDK_PATH_INVALID_EXCEPTION.

       

      An easy fix is checking if the spec's bytes are null, but that breaks another test for the same reason as JCBC-2056.

      Attachments

        For Gerrit Dashboard: NCBC-3612
        # Subject Branch Project Status CR V

        Activity

          People

            emilien.bevierre Emilien Bevierre
            emilien.bevierre Emilien Bevierre
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty