Closed Bug 810172 Opened 13 years ago Closed 12 years ago

session restore corrupts non ASCII quick filter data

Categories

(Thunderbird :: General, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 30.0

People

(Reporter: m_kato, Unassigned)

References

Details

(Keywords: dataloss, intl, Whiteboard: [fixed by bug 894793])

Attachments

(1 file)

We should save/read session.json by UTF-8. Also when saving session.json, we should use NetUtil.asyncCopy. Step 1. input non-ASCII character (あああ) to quick filter on main Window. 2. quit Thunderbird 3. launch Thunderbird Result value of quick filter isn't 1's character.
Assignee: nobody → m_kato
Severity: normal → critical
Keywords: dataloss, intl
Attached patch fixSplinter Review
- fix character encoding - Use services.jsm for session restore code - Use async store
Attachment #680523 - Flags: review?(irving)
Comment on attachment 680523 [details] [diff] [review] fix Review of attachment 680523 [details] [diff] [review]: ----------------------------------------------------------------- This looks good. I wonder if there are other configuration and state files that don't handle non-ASCII data correctly.
Attachment #680523 - Flags: review?(irving) → review+
https://hg.mozilla.org/comm-central/rev/5296b0401e94 If using JSON file for any data with non-ASCII, this same problem will occur.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 19.0
backout due to mozmill failure. https://hg.mozilla.org/comm-central/rev/bcf2893ee19a https://tbpl.mozilla.org/php/getParsedLog.php?id=17096940&tree=Thunderbird-Trunk TEST-UNEXPECTED-FAIL | /home/cltbld/talos-slave/test/build/mozmill/session-store/test-session-store.js | test-session-store.js::test_periodic_session_persistence_simple TEST-UNEXPECTED-FAIL | /home/cltbld/talos-slave/test/build/mozmill/session-store/test-session-store.js | test-session-store.js::test_periodic_nondirty_session_persistence TEST-UNEXPECTED-FAIL | /home/cltbld/talos-slave/test/build/mozmill/session-store/test-session-store.js | test-session-store.js::test_single_3pane_periodic_session_persistence TEST-UNEXPECTED-FAIL | /home/cltbld/talos-slave/test/build/mozmill/session-store/test-session-store.js | test-session-store.js::test_multiple_3pane_periodic_session_persistence
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
humm, I change to async I/O code, but mozmill test expects sync'ed I/O... It depends on timing...
(In reply to Makoto Kato from comment #5) > humm, I change to async I/O code, but mozmill test expects sync'ed I/O... > It depends on timing... there's another recent bug about this, no?
(In reply to Wayne Mery (:wsmwk) from comment #6) > (In reply to Makoto Kato from comment #5) > > humm, I change to async I/O code, but mozmill test expects sync'ed I/O... > > It depends on timing... > > there's another recent bug about this, no? No, this problem is test code...
will this also fix bug 657478?
(In reply to Wayne Mery (:wsmwk) from comment #8) > will this also fix bug 657478? That's right! That bug should be dup to this.
Blocks: 408338
see also Bug 894793.
fixed in Bug 894793.
Status: REOPENED → RESOLVED
Closed: 13 years ago12 years ago
Resolution: --- → FIXED
Assignee: m_kato → nobody
Depends on: 894793
Whiteboard: [fixed by bug 894793]
Target Milestone: Thunderbird 19.0 → Thunderbird 30.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: