JSON strings in some responses not being correctly escaped

Description

Need to ensure strings are correctly escaped when manually building JSON responses (we do this for some small efficiency reasons). We already do this in some places via ConvertToJSONString, need to make sure this is used comprehensively.

Same general issue as , but that fix was too narrow.

E.g:

from handler.writeRawJSON, handler.writeRawJSONStatus

Activity

Show:

CB robot June 7, 2021 at 2:12 PM

Build sync_gateway-3.0.0-216 contains sync_gateway commit 51c3631 with commit message:
- JSON strings in some responses not being correctly escaped (#5023)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created April 22, 2021 at 5:19 PM
Updated June 8, 2021 at 6:44 PM
Resolved June 7, 2021 at 2:16 PM
Instabug