Closed Bug 295990 Opened 20 years ago Closed 20 years ago

can only create one storage (local) calendar using the wizard

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Lightning 0.1

People

(Reporter: mvl, Assigned: shaver)

References

Details

(Keywords: regression)

Attachments

(1 file)

The wizard uses moz-profile:// as url for a local storage calendar. It should
add ?id=<n> to be able to create multiple calendars.
Or should the storage calendar be more helpful? That would mean it changes the
url. Is that a good thing?
This was supposed to be handled by the per-provider calICalendarProvider
service, or so I thought...
Keywords: regression
Using a Windows debug build of Thunderbird, I get the following debug output
(starting from when I clicked the "New..." button to create a new calendar)

++WEBSHELL == 5
++DOMWINDOW == 5
asdad

moz-profile-calendar://
storage
*** Calendar schema version is: 3
registerCalendar: calendar already registered
************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'Failure' when calling method: [calICalendarManager::registerCale
ndar]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome
://calendar/content/calendarCreation.js :: doCreateCalendar :: line 90"  data: n
o]
************************************************************
************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'Failure' when calling method: [calICalendarManager::registerCale
ndar]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome
://calendar/content/calendarCreation.js :: doCreateCalendar :: line 90"  data: n
o]
************************************************************
Assignee: mostafah → dmose
Depends on: 297721
Taking, I have a small patch that fixed this without the need for all the
provider infrastructure, which will let us ship 0.8.
Assignee: dmose → shaver
No longer depends on: 297721
This causes some strange behaviour when you delete a calendar from the list and
then add a new one, because "delete" only unregisters.	It should
prompt-and-delete anyway (bug 298373).
Attachment #186936 - Flags: second-review?(pavlov)
Attachment #186936 - Flags: first-review?(vladimir)
Comment on attachment 186936 [details] [diff] [review]
Start at id=2, and find the first unallocated one in the list.

r=vladimir
Attachment #186936 - Flags: first-review?(vladimir) → first-review+
Attachment #186936 - Flags: second-review?(pavlov) → second-review+
FIXED, woo.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → Lightning 0.8
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: