Issue 2948: REST Api emits broken output
Status:  Invalid
Owner: ----
Closed:  Oct 2014
Reported by kaeufli....@googlemail.com, Oct 7, 2014
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: 2.10-rc0-596-g57bb722, 2.9.1

What steps will reproduce the problem?
1. `curl -v -H 'Accept: application/json' 'https://chromium-review.googlesource.com/changes/' > /tmp/changes.json`
2. First line in the file is `)]}'` breaking JSON decoding

What is the expected output? What do you see instead?

Expected: Valid JSON
Seen: Leading characters breaking JSON

Please provide any additional information below.

This also happens with the »normal« output (`curl -v 'https://chromium-review.googlesource.com/changes/'`)
changes.json
255 KB   Download
Oct 7, 2014
#1 kaeufli....@googlemail.com
What was probably not made clear: This is not a problem of the chromium installation but also happening on http://review.couchbase.org, https://review.typo3.org etc.
Oct 7, 2014
#2 kaeufli....@googlemail.com
Sorry, I didn't see the part about XSS
Oct 8, 2014
Project Member #3 David.Os...@gmail.com
As you found out yourself, it works as designed.
Status: Invalid