Closed
Bug 492094
Opened 16 years ago
Closed 16 years ago
Weave posts warnings about integer error during sync in Preferences.js
Categories
(Cloud Services :: General, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 493816
1.0
People
(Reporter: mozilla.bugs, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4
Weave 0.3.0 generates the following warnings in Firefox 3.5b4. These warnings appear in Firebug and the Error Console during Weave syncs to a private Weave Server. Each warning points to Preferences.js line 115.
Warning: setting the clients.lastSync pref to the non-integer number
1241805112.41 converted it to the integer number 1241805112; to retain
fractional precision, store non-integer numbers as strings. [Break on this
error] "numbers as strings.");
Warning: setting the bookmarks.lastSync pref to the non-integer number
1241805112.41 converted it to the integer number 1241805112; to retain
fractional precision, store non-integer numbers as strings. [Break on this
error] "numbers as strings.");
Warning: setting the passwords.lastSync pref to the non-integer number
1241805112.41 converted it to the integer number 1241805112; to retain
fractional precision, store non-integer numbers as strings. [Break on this
error] "numbers as strings.");
This is not a major issue, but it might indicate an problem with data type (int versus string) management in Weave or another issue.
Reproducible: Always
Steps to Reproduce:
1. Install Weave
2. Wait until second sync with server
3. Errors appear in Error Console or Firebug
Actual Results:
Warnings are sent through the Cu.reportError() function in Preferences.js.
Expected Results:
No warnings should occur
Comment 1•16 years ago
|
||
!?
Seriously, the pref svc can't store numbers with fractions?
Comment 2•16 years ago
|
||
> Seriously, the pref svc can't store numbers with fractions?
srsly!
Also, sweet! The warning I added to the Preferences module had an effect!
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•16 years ago
|
||
omg I am shocked!
The pref svc does not rock.
Updated•16 years ago
|
Flags: blocking-weave1.0+
Target Milestone: -- → 1.0
Updated•16 years ago
|
Component: Weave → General
Product: Mozilla Labs → Weave
Updated•16 years ago
|
QA Contact: weave → general
Comment 4•16 years ago
|
||
Locally avoided with bug 493816 to store as a string. Preferences.js bug:
https://www.mozdev.org/bugs/show_bug.cgi?id=21060
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•