Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1763

`kErrTruncatedJSON` is returning `kFLNoError`

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0
    • LiteCore
    • Security Level: Public
    • None

    Description

          CBLStringBytes jsonSlice(@"[");  // or @"{" or any truncated JSON?
          FLError flEerror = {};
          Encoder enc;
          Assert(!FLEncoder_ConvertJSON(enc, jsonSlice)); // fails due to `kErrTruncatedJSON`
          Assert(enc.error() != 0);
      

      Expected result: Error code should return something other than `kFLNoError`?

      Attachments

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

        Activity

          Build couchbase-lite-log-3.0.0-112 contains fleece commit f8923b7 with commit message:
          CBL-1763: FLError not set on truncated JSON (#91)

          build-team Couchbase Build Team added a comment - Build couchbase-lite-log-3.0.0-112 contains fleece commit f8923b7 with commit message: CBL-1763 : FLError not set on truncated JSON (#91)

          Build couchbase-lite-ios-3.0.0-160 contains fleece commit f8923b7 with commit message:
          CBL-1763: FLError not set on truncated JSON (#91)

          build-team Couchbase Build Team added a comment - Build couchbase-lite-ios-3.0.0-160 contains fleece commit f8923b7 with commit message: CBL-1763 : FLError not set on truncated JSON (#91)

          Build couchbase-lite-net-3.0.0-71 contains fleece commit f8923b7 with commit message:
          CBL-1763: FLError not set on truncated JSON (#91)

          build-team Couchbase Build Team added a comment - Build couchbase-lite-net-3.0.0-71 contains fleece commit f8923b7 with commit message: CBL-1763 : FLError not set on truncated JSON (#91)

          Build couchbase-lite-android-3.0.0-117 contains fleece commit f8923b7 with commit message:
          CBL-1763: FLError not set on truncated JSON (#91)

          build-team Couchbase Build Team added a comment - Build couchbase-lite-android-3.0.0-117 contains fleece commit f8923b7 with commit message: CBL-1763 : FLError not set on truncated JSON (#91)

          Build couchbase-lite-java-3.0.0-117 contains fleece commit f8923b7 with commit message:
          CBL-1763: FLError not set on truncated JSON (#91)

          build-team Couchbase Build Team added a comment - Build couchbase-lite-java-3.0.0-117 contains fleece commit f8923b7 with commit message: CBL-1763 : FLError not set on truncated JSON (#91)

          People

            Jayahari.Vavachan Jay Vavachan
            Jayahari.Vavachan Jay Vavachan
            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