Closed Bug 366621 Opened 18 years ago Closed 6 years ago

Corrupted ICS file returns obtuse error in onStreamComplete

Categories

(Calendar :: Provider: ICS/WebDAV, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jrossiter, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Thunderbird version 2 beta 1 (20070109) & Lightning 2007011004

This started immediately after updating my daily build of Thunderbird a couple days ago.  I had been running an earlier build of Lightning steadily for some period of time (a month or two at least.  Early 0.4a1).

The calendar is loaded but marked read only.  The line indicates the "try {" of a try-catch block which seems very weird to me.


Error Number: ICS_NO_ERROR

[Exception... "Component returned failure code: 0x804a0100 [calIICSService.parseICS]"  nsresult: "0x804a0100 (<unknown>)"  location: "JS frame :: file:///C:/Documents%20and%20Settings/Signe/Application%20Data/Thunderbird/Profiles/9tkm8pc9.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calICSCalendar.js :: anonymous :: line 245"  data: no]

Reproducible: Always

Steps to Reproduce:
Load a calendar on a password-protected HTTP webdav
Reporter,
Do you know the buildID/date of the version of Lightning that worked for you previously?  It would help a lot in nailing down the regression range.
I can only approximate that it was around 20061201 - I don't know the exact build. As I mentioned, though, it wasn't a change in Lightning that triggered the issue, it was a nightly update of Thunderbird.  The last working build of Thunderbird was either 20070106 or 20070105.
It looks like either the Thunderbird upgrade or the Lightning error truncated my calendar.  I manually reviewed the file and 2/3rds of it was missing.

I'll rename the bug to something more applicable - the error is only occuring with an incomplete .ics file.
Summary: ICS over WebDav failing in onStreamComplete → Corrupted ICS file returns obtuse error in onStreamComplete
I did also experience the truncation of one of my ICS files around two weeks ago. Thunderbird 2.0pre is updating every night. I have no idea what triggered this.
Whiteboard: [qa discussion needed]
This is an extremely odd issue.  Has there been any other occurrence of this?  Do you have any ideas on how to reproduce it?  Here is a listing of other bugs that occur in this way (throwing an NS_ERROR_UNKNOWN from parseICS): https://bugzilla.mozilla.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=Calendar&long_desc_type=allwordssubstr&long_desc=0x804a0100+parseICS&bug_file_loc_type=allwordssubstr&bug_file_loc=&status_whiteboard_type=allwordssubstr&status_whiteboard=&keywords_type=allwords&keywords=&resolution=DUPLICATE&resolution=---&emailassigned_to1=1&emailtype1=exact&email1=&emailassigned_to2=1&emailreporter2=1&emailqa_contact2=1&emailtype2=exact&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+last+time&field0-0-0=noop&type0-0-0=noop&value0-0-0=

I think that even if we cannot reproduce this and/or duplicate one or more of the bugs from the above list to this one (or vice versa) we still need a better error message for when things go incredibly wrong.

Setting QAWANTED.
Keywords: qawanted
Whiteboard: [qa discussion needed]
Today, I just started Thunderbird and got an error message for three calendars:

Error Number: ICS_NO_ERROR

[Exception... "Component returned failure code: 0x804a0100 [calIICSService.parseICS]"  nsresult: "0x804a0100 (<unknown>)"  location: "JS frame :: file:///M:/Profiles/8kvwtduw.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/js/calIcsParser.js :: ip_parseString :: line 58"  data: no]


The strange thing is: I haven't touched anything (even the nightly build of Lightning is a few days old) and the other webdav calendars on the same server just work fine.

Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.12) Gecko/20080213 Lightning/0.8pre (2008022718) Thunderbird/2.0.0.12 ID:2008021305

Status: UNCONFIRMED → NEW
Ever confirmed: true
Some more informations on this bug:

- I checked the ics-files on the server with sunbird, the was NO dataloss on this side

- after restarting Thunderbird a few times, it asked for the Webdav username and password (no idea why, because it was and is still saved in the password manager, the other calendars on the server use it)

- after providing the username and password, lightning consumed 100% of the cpu time for 2-3 minutes, PC was totally locked, then the calendardata was there again. 
Is there a testcase that still reproduces this using a currnet versoin?
Flags: needinfo?(thetux.moz)
Flags: needinfo?(jrossiter)
Whiteboard: [closeme 2018-01-01]
Resolved per whiteboard
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(thetux.moz)
Flags: needinfo?(jrossiter)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2018-01-01]
You need to log in before you can comment on or make changes to this bug.