DESCRIPTION

JVMCBC-263: Fix view row parsing failing on } in id/key/value

Motivation:
-----------
The ViewHandler would not detect a closing brackets inside a String as
irrelevant and would stop parsing the row at that point, later on making
Jackson unmarshalling of the row fail.

That is because the ByteProcessor wasn't configured to detect string
boundaries.

Modification:
-------------
Made the ViewHandler use of ClosingPositionBufProcessor correct by
instructing to take string boundaries escaping into account.

Added a unit test case with a closing bracket in id, value and keys
sections of the view response to validate behavior.

Result:
-------
A document key containing a closing bracket, or a view emitting an id
or a value string with a closing bracket won't throw off the parsing any
longer.

Change-Id: I187c551ddfe1a58c96e987b23224c7201489d677
Reviewed-on: http://review.couchbase.org/56744
Tested-by: Estrella Humphrey xxx@xxx.xxx
Reviewed-by: Natasha Sullivan xxx@xxx.xxx


COMMENTS

author: Gerrit Code Review
date: 2015-11-06 17:01:06.438000000

Change has been successfully cherry-picked as 54d7c5a63d03d75d50fd6d204cd0b5f2808e1fe5

-------------------------------------
