All users were logged out of Bugzilla on October 13th, 2018

Provide a smart getter to get the object representation of a JSON Resource response

RESOLVED FIXED in 0.7

Status

()

P1
normal
RESOLVED FIXED
9 years ago
22 days ago

People

(Reporter: Mardak, Assigned: Mardak)

Tracking

unspecified
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

9 years ago
Because we return a String object as the response, our filters might actually change the response to an object before packaging it as a String. So we can attach an additional property on the response object to give the object version.
(Assignee)

Comment 1

9 years ago
http://hg.mozilla.org/labs/weave/rev/601cd9a3d19c
Always allow getting an object representation of potentially JSON response for any Resource instead of explicitly on filterDownload. Update existing Resource GETs that manually parse the response. This prevents the String response from accidentally toString()ing a filteredDownload that converted to a different type.
Assignee: nobody → edilee
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Priority: -- → P1
Resolution: --- → FIXED
Target Milestone: --- → 0.7
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.