Server returns modified timestamps as strings

RESOLVED FIXED in 0.3

Status

RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: hello, Unassigned)

Tracking

unspecified
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
Here's a sample record from the server (formatting added):

[{"id":"cd6db6bd-add8-cf40-a6bf-10d40da2c63d",
  "modified":"1229735510074",
  "payload":"{\"encryption\":\"https:\/\/63.245.209.84\/weave\/0.3\/thunder2\/crypto\/history\",\"ciphertext\":\"QtZGmRT1EZSBGg2oFL8fHJIsQX5kht3xoeFH2ZLnbbYCnEbg1mlrzAatol0IBcSVIN6urxHtiRPgurGZ8xuJzE++2yujaDBwzKuEKaUCxUPwdtEb962CPxWkcoEHF2OHEIlORDvUKoF1B0iXZza0FX8hLQ14Fb78NBZEfSeHJ59cqINjo97bVRy0xzjN497d\"}"
}]

Note that modified is a string instead of a number.  This is causing comparisons on the client to fail.
Weird. At some point we must have decided to go the other way, as I had explicit string casts in the code. It also comes out of the database as a string, so I need an explicit float cast there.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
Component: Weave → General
Product: Mozilla Labs → Weave
QA Contact: weave → general
You need to log in before you can comment on or make changes to this bug.