Closed
Bug 733629
Opened 13 years ago
Closed 13 years ago
Don't return any JSON lists from sync server 2.0
Categories
(Cloud Services Graveyard :: Server: Sync, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: telliott, Assigned: rfkelly)
References
Details
(Whiteboard: [sync 2.0][qa-])
Attachments
(2 files)
2.77 KB,
patch
|
Details | Diff | Splinter Review | |
13.19 KB,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
There's a security issue with JSON arrays and older browsers. We should wrap our lists in some sort of top-level object. I think this only applies to GET /storage/collection, as I believe you moved quotas over to objects.
Updated•13 years ago
|
Whiteboard: [sync 2.0] → [sync 2.0][qa-]
Assignee | ||
Comment 1•13 years ago
|
||
So the output will look something like:
{ "items": [{<bso>}, {<bso>}}
Also noting, per conversation with atoll, this opens up the possibility of including additional metadata in the response.
Blocks: 720964
Assignee | ||
Comment 2•13 years ago
|
||
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #608505 -
Flags: review?(telliott)
Reporter | ||
Comment 4•13 years ago
|
||
Comment on attachment 608505 [details] [diff] [review]
code patch to return objects rather than lists
That's an impressive ratio of test changes to code changes.
Attachment #608505 -
Flags: review?(telliott) → review+
Comment 5•13 years ago
|
||
hey btw, cornice emits a warning if you return lists : there's a xrsf protection
Assignee | ||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 7•13 years ago
|
||
Code verified and passed functional tests of Sync 2.0 and AITC 1.0 for a current deploy to qa1.
Status: RESOLVED → VERIFIED
Updated•2 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•