Closed Bug 284078 Opened 20 years ago Closed 20 years ago

Calendar wizard doesn't accept local calendars

Categories

(Calendar :: Sunbird Only, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stelian, Assigned: mostafah)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050224 Firefox/1.0.1 Fedora/1.0.1-1.3.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050224 Firefox/1.0.1 Fedora/1.0.1-1.3.1

When trying to create a local calendar in the wizard, clicking on 'Next' says
that the calendar is created ok, but clicking on 'Finish' does not do anything,
instead an error is printed on the console:

test
file:///tmp/test.ics

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'[JavaScript Error:
"Components.classes["@mozilla.org/calendar/calendar;1?type=" + type] has no
properties" {file:
"file:///home/admin/mozilla-head/mozilla/dist/bin/components/calCalendarManager.js"
line: 149}]' when calling method: [calICalendarManager::createCalendar]" 
nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location:
"JS frame :: chrome://calendar/content/calendar.js :: doCreateWizardFinish ::
line 1659"  data: yes]

The only way to close the window is to "Cancel", and then many things are broken
because no calendars aredefined.


Reproducible: Always

Steps to Reproduce:
1. rm -rf ~/.mozilla
2. ./dist/bin/sunbird
3. try to create a local calendar, named 'test', located at 'file:///tmp/test.ics'
Ugh. For some reason, 
"var type=document.getElementById("initial-radiogroup").value;" always ends up
giving an empty value. Workaround is in patch.

Also, there is no provider called local.
Attachment #175826 - Flags: first-review?(pavlov)
Comment on attachment 175826 [details] [diff] [review]
1st attempt at fixing broken new calendar wizard

hm, i swore I fixed this, but I don't see it in the tree.  the first radio
should be 'storage'.  I'll land this in a few.
We should use the "storage" provider for local calendars.
Attachment #175944 - Flags: first-review?(pavlov)
OK, I checked that in.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
The patch is not in CVS yet.
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
ok, i really checked it in this time
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Attachment #175826 - Attachment is obsolete: true
Attachment #175826 - Flags: first-review?(pavlov)
Attachment #175944 - Flags: first-review?(pavlov) → first-review+
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: