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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: telliott, Assigned: rfkelly)

References

Details

(Whiteboard: [sync 2.0][qa-])

Attachments

(2 files)

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.
Whiteboard: [sync 2.0] → [sync 2.0][qa-]
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
Attachment #608505 - Flags: review?(telliott)
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+
hey btw, cornice emits a warning if you return lists : there's a xrsf protection
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Code verified and passed functional tests of Sync 2.0 and AITC 1.0 for a current deploy to qa1.
Status: RESOLVED → VERIFIED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: