Details
-
Bug
-
Resolution: Fixed
-
Major
-
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
-
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
- backports to
-
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
- Closed
-
MB-61414 [BP 7.2.5] - XDCR - JSON documents are considered invalid when there are whitespace characters at the end of the document during filtering
- Closed