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

`kErrTruncatedJSON` is returning `kFLNoError`

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 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

          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