Closed Bug 405417 Opened 17 years ago Closed 17 years ago

new task mode remains empty

Categories

(Calendar :: Tasks, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ulf.stroehler, Assigned: michael.buettner)

Details

(Keywords: regression)

Attachments

(1 file)

switching to the new task mode does not display anything for me although I have plenty of tasks.

Error console output when creating a new task:

Error: [Exception... "'[JavaScript Error: "this.binding.mHash2Index has no properties" {file: "chrome://calendar/content/calendar-task-tree.xml" line: 213}]' when calling method: [calIObserver::onAddItem]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: file:///localhome/sous/.thunderbird/wdvi25cj.2007-07-31_community/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/js/calUtils.js :: notifyFunc :: line 1212"  data: yes]
Source File: file:///localhome/sous/.thunderbird/wdvi25cj.2007-07-31_community/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/js/calUtils.js
Line: 1215
Please provide steps to reproduce the issue starting with a clean profile.

I do not see this error using Thunderbird 2.0.0.10pre (20071122) with Lightning 0.8pre (2007112605) and storage calendar.
Steps to reproduce:

- subscribe to a ICS-netcalendar, e.g: http://www.google.com/calendar/ical/usa@holiday.calendar.google.com/public/basic.ics

- restart thunderbird/lightning -> task mode is empty!

uncheck this calendar in the calendar list, restart thunderbird/lightning again -> task are visible again. 
Keywords: regression
I have several tasks in the default storage calendar (repeating, non-repeating, with and without dates, with and without timezone, ...). I'm also subscribed to the calendar mentioned in Comment #2 but don't see the error.
seems you have to have one additional wcap calendar subscribed and one ics calendar on the internet.
@Ulf: At least I found that the composite calendar doesn't fire the mandatory onOperationComplete() function which Daniel has fixed (see check-in from yesterday - "missing error code onOperationComplete, broken response chain"). Could you please see whether or not this fixed the problem? I could reproduce it when configured a WCAP calendar with a bogus url, but this seems to be gone with above mentioned patch.
@Daniel: I would prefer to find patches attached to bugs, otherwise bugs magically disappear since something apparently unrelated has been checked in. This makes it extraordinarily difficult to track down which patch has fixed/caused which issue.
(In reply to comment #5)
> @Daniel: I would prefer to find patches attached to bugs, otherwise bugs
> magically disappear since something apparently unrelated has been checked in.
> This makes it extraordinarily difficult to track down which patch has
> fixed/caused which issue.
Well, you didn't write a bug, so I fixed this with bug 340949.
It makes me wonder why you talk of "magically disappear" and "extraordinarily difficult to track down" since I've written you an e-Mail yesterday evening that I've fixed that WCAP part.
Do I read the comments correct that this is a wcap provider bug and can be resolved as fixed by the checkin?
(In reply to comment #7)
> Do I read the comments correct that this is a wcap provider bug and can be
> resolved as fixed by the checkin?

I don't think so. I got those error messages with only storage calendars. But the problem seems to be intermittent for me, so I have no STR.
fixed (w. bug 340949).
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
verified in nightly build from Nov 30th.
Status: RESOLVED → VERIFIED
Reopening. Still seeing those error messages _without_ having a WCAP calendar, only storage ones (see comment#8) with Lightning 0.8pre (2007120204) on Windows XP. Adding to and deleting from the Task List on the Today Pane produces following error messages:

Error: this.binding.mHash2Index has no properties
Source File: chrome://calendar/content/calendar-task-tree.xml
Line: 213

Error: [Exception... "'[JavaScript Error: "this.binding.mHash2Index has no properties" {file: "chrome://calendar/content/calendar-task-tree.xml" line: 213}]' when calling method: [calIObserver::onAddItem]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: file:///C:/Dokumente%20und%20Einstellungen/Martin/Anwendungsdaten/Thunderbird/Profiles/bmwhbm90.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/js/calUtils.js :: notifyFunc :: line 1240"  data: yes]
Source File: file:///C:/Dokumente%20und%20Einstellungen/Martin/Anwendungsdaten/Thunderbird/Profiles/bmwhbm90.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/js/calUtils.js
Line: 1243

Error: this.binding.mHash2Index has no properties
Source File: chrome://calendar/content/calendar-task-tree.xml
Line: 219

Error: [Exception... "'[JavaScript Error: "this.binding.mHash2Index has no properties" {file: "chrome://calendar/content/calendar-task-tree.xml" line: 219}]' when calling method: [calIObserver::onDeleteItem]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: file:///C:/Dokumente%20und%20Einstellungen/Martin/Anwendungsdaten/Thunderbird/Profiles/bmwhbm90.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/js/calUtils.js :: notifyFunc :: line 1240"  data: yes]
Source File: file:///C:/Dokumente%20und%20Einstellungen/Martin/Anwendungsdaten/Thunderbird/Profiles/bmwhbm90.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/js/calUtils.js
Line: 1243
Status: VERIFIED → REOPENED
Hardware: PC → All
Resolution: FIXED → ---
Version: Trunk → unspecified
Martin, could you please give a detailed list of steps on how to reproduce the above mentioned behavior? It seems that regardless how hard I try, I can't reproduce it. Does it depend on the type of calendars being listed or any particular action one must take?
Attached patch patch v1Splinter Review
Creating a new task from the unifinder todo (double click, save'n'close in the dialog) brought up the previously reported exception. It took me a while to figure out what actually was wrong with the field initialization, but I should have wrapped it in a cdata section.
Attachment #292399 - Flags: review?(daniel.boelzle)
Comment on attachment 292399 [details] [diff] [review]
patch v1

r=dbo
Attachment #292399 - Flags: review?(daniel.boelzle) → review+
patch checked in on trunk and MOZILLA_1_8_BRANCH

-> FIXED
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.8
Checked in latest nightly build (20080128). I used the STR in comment 13 to verify the additional fixes. Bug is fixed and verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.