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

GetView doesn't return an exception if the view doesn't exist.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.1
    • library
    • None
    • Visual Studio 2012, .net Client, couchbase 2.0,
      win7/x64

    Description

      When you call var result = _couchClient.GetView(<etc.>), there is no exception thrown when the view does not exist. The program will only throw an exception when it attempts to access the data, ie: result.Count() will throw an exception.

      Attachments

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

        Activity

          The view isn't queried until the IEnumerable is actually iterated over. Therefore when you call GetView, there's no way to know that the view doesn't exist.

          I will look into catching the 400 error and throwing a more meaningful exception.

          john John Zablocki (Inactive) added a comment - The view isn't queried until the IEnumerable is actually iterated over. Therefore when you call GetView, there's no way to know that the view doesn't exist. I will look into catching the 400 error and throwing a more meaningful exception.

          Baking better exceptions into the view reading process and providing a CheckExists method.

          john John Zablocki (Inactive) added a comment - Baking better exceptions into the view reading process and providing a CheckExists method.

          Released

          john John Zablocki (Inactive) added a comment - Released

          People

            john John Zablocki (Inactive)
            kyle.sama Kyle Sama
            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