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)

x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 493816

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
!? Seriously, the pref svc can't store numbers with fractions?
> 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
omg I am shocked! The pref svc does not rock.
Flags: blocking-weave1.0+
Target Milestone: -- → 1.0
Component: Weave → General
Product: Mozilla Labs → Weave
QA Contact: weave → general
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
Verified duplicate.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.