Unhandled exception NS_ERROR_NOT_AVAILABLE on write failure to WebDAV calendar

RESOLVED FIXED in 2.7

Status

Calendar
Provider: ICS/WebDAV
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mmecca, Assigned: mmecca)

Tracking

unspecified

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

5 years ago
If an error occurs while writing to a WebDAV calendar, in some cases nsIHttpChannel.requestSucceeded throws the following:

Error: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIHttpChannel.requestSucceeded]
Source file: .../components/calICSCalendar.js
Line: 423

This exception is unhandled and prevents graceful failure including the display of the Modification Failed error and disabling of the calendar.
(Assignee)

Comment 1

5 years ago
Created attachment 695399 [details] [diff] [review]
Fix v1

Handle possible exceptions when accessing requestSucceeded
Attachment #695399 - Flags: review?(philipp)
Comment on attachment 695399 [details] [diff] [review]
Fix v1

r=philipp
Attachment #695399 - Flags: review?(philipp) → review+

Comment 3

5 years ago
Matthew, was the patch already checked-in? If not, is it still valid and required?
(Assignee)

Comment 4

5 years ago
Created attachment 774460 [details] [diff] [review]
Fix v2

The log message is misleading for local ics files, since the requestSucceeded status is only relevant for an http channel.
Attachment #695399 - Attachment is obsolete: true
Attachment #774460 - Flags: review?(philipp)
Comment on attachment 774460 [details] [diff] [review]
Fix v2

r=philipp
Attachment #774460 - Flags: review?(philipp) → review+
(Assignee)

Updated

5 years ago
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/839e3d7acdb1
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.7
You need to log in before you can comment on or make changes to this bug.