Closed Bug 435877 Opened 18 years ago Closed 18 years ago

UTF-8 decoding problem breaks wcap calendar

Categories

(Calendar :: Provider: WCAP, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dbo, Assigned: dbo)

Details

(Keywords: regression)

Attachments

(3 files)

Due to recent changes to calWcapRequest (especially introducing strong UTF-8 decoding), some calendars break on loading their user prefs. CS doesn't encode proper UTF-8, thus the octet conversion to UTF-8 fails. Although this is for sure a cs bug, we need to be error tolerant on reading.
Flags: blocking-calendar0.9+
Summary: UTF-8 decoding problems breaks calendar → UTF-8 decoding problem breaks wcap calendar
Assignee: nobody → daniel.boelzle
Status: NEW → ASSIGNED
Attachment #322804 - Flags: review?(philipp)
Comment on attachment 322804 [details] [diff] [review] moving back to unichar stream loader >+ * Returns true if this is MOZILLA_1_8_BRANCH, else false. >+ */ >+function isBranch() { >+ if (isBranch.mIsBranch === undefined) { >+ isBranch.mIsBranch = (Components.interfaces.nsIStreamLoader.number == "{31d37360-8e5a-11d3-93ad-00104ba0fd40}"); >+ } >+ return isBranch.mIsBranch; >+} Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo).platformVersion.match(/^1.8/); r=philipp
Attachment #322804 - Flags: review?(philipp) → review+
(In reply to comment #2) > (From update of attachment 322804 [details] [diff] [review]) > >+ * Returns true if this is MOZILLA_1_8_BRANCH, else false. > >+ */ > >+function isBranch() { > >+ if (isBranch.mIsBranch === undefined) { > >+ isBranch.mIsBranch = (Components.interfaces.nsIStreamLoader.number == "{31d37360-8e5a-11d3-93ad-00104ba0fd40}"); > >+ } > >+ return isBranch.mIsBranch; > >+} > Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo).platformVersion.match(/^1.8/); Hmm, I was thinking about that, too. But app-info is not available e.g. in unit tests, thus I moved over to testing some interface version that has changed from branch to trunk. Any objections against doing so?
Checked in on HEAD and MOZILLA_1_8_BRANCH => FIXED. Philipp, if your have any objections w.r.t. comment #3, we can fix that later on.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.9
repopening because of code regression
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch fixes regressionSplinter Review
Attachment #323865 - Flags: review?(philipp)
Attachment #323865 - Flags: review?(philipp) → review+
Checked in fix on HEAD and MOZILLA_1_8_BRANCH =< FIXED again.
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch fixes trunkSplinter Review
Attachment #324012 - Flags: review?(philipp)
Attachment #324012 - Flags: review?(philipp) → review+
Checked in trunk patch on HEAD and MOZILLA_1_8_BRANCH => FIXED once again.
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Checked in lightning build 2008080603 and sunbird 20080805 -> VERIFIED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: