Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-61413

[BP 7.6.2] - XDCR - JSON documents are considered invalid when there are whitespace characters at the end of the document during filtering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6.2
    • 6.5.1, 6.6.0, 6.6.1, 6.6.2, 6.5.2, 6.5.0, 7.6.0, 6.6.3, 6.6.4, 6.6.5, 6.6.6, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.1.4, 7.0.5, 7.1.0, 7.1.1, 7.1.2, 7.2.0, 7.1.3, 7.2.1, 7.1.5, 7.2.4, 7.0.6, 7.1.7, 7.2.2, 7.1.6, 7.2.3, 7.2.5
    • XDCR
    • Untriaged
    • 0
    • Unknown

    Description

      We have certain checks in the filter codepath - https://github.com/couchbase/goxdcr/blob/master/base/filter/filterUtils.go#L259 and https://github.com/couchbase/goxdcr/blob/master/base/filter/filterUtils.go#L272

      This strictly checks if the last character of the json body is ] or }. But we can have a valid json with various types of whitespaces after } or ]. 

      This MB is to rectify this check considering that there could be whitespaces at the end.

      Attachments

        Issue Links

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

          Activity

            People

              ayush.nayyar Ayush Nayyar
              sumukh.bhat Sumukh Bhat
              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