Closed Bug 321020 Opened 20 years ago Closed 20 years ago

Lightning: The calendar list is empty after 'Publish Calendar'

Categories

(Calendar :: Lightning Only, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ssitter, Assigned: ssitter)

References

Details

Lightning: The calendar list is empty after 'Publish Calendar' Thunderbird version 1.6a1 (20051220) + Lightning from same day Steps to reproduce: 1. Right click calendar in calendar tab in side pane 2. Select 'Publish...' --> Publish dialog shows, JavaScript Console says: Warning: assignment to undeclared variable currentCalendar Source File: chrome://lightning/content/messenger-overlay-sidebar.js Line: 221 3. Enter URL and press 'Publish' --> The ics file is created, JavaScript Console says: Warning: reference to undefined property getCalendars()[index] Source File: chrome://lightning/content/messenger-overlay-sidebar.js Line: 9 Error: calendar has no properties Source File: file:///<snip>/components/calCalendarManager.js Line: 183 Error: calendar has no properties Source File: file:///<snip>/components/calCalendarManager.js Line: 183 --> All calendars are still visible in calendar tab in side pane 4. Press Close or Cancel --> Publish dialog closes --> All calendars disappeared from calendar tab in side pane
After a first test it seems that the error happens during the deleteCalendar() call at http://lxr.mozilla.org/seamonkey/source/calendar/base/content/calendar-publish-dialog.js#114
Ok, removing the call to calCalendarManager:deleteCalendar seems to fix that error. Also there seems to be no additional calendar in the storage.sdb file without that call. Question: Is it adequate just to remove that call to deleteCalendar()? Or does that has any side effects I'm not aware off?
(In reply to comment #2) > Ok, removing the call to calCalendarManager:deleteCalendar seems to fix that > error. Also there seems to be no additional calendar in the storage.sdb file > without that call. > > Question: > Is it adequate just to remove that call to deleteCalendar()? Or does that has > any side effects I'm not aware off? > I'd say no, you can't just remove it. Since we're registering the calendar in order to publish it, this would often leave the user with an extra calendar in their list. I'd suggest trying to move Lightning to the Sunbird publishing code, since that seems to be working ok in that app at least, and has had some testing in 0.3a1.
We don't want to break this easily in Lightning 0.1. Adding to the block list, and tentatively assigning to Stefan, since he seems to have been looking into this. Stefan, if you're not going to take this, please flip it back to "nobody".
Assignee: nobody → ssitter
Depends on: 323183
The work on bug 323183 ought to have fixed this.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.