Closed Bug 793262 Opened 12 years ago Closed 12 years ago

JavaScript Error: "this_ is not defined" on any new calendar item

Categories

(Calendar :: Lightning Only, defect)

Lightning 1.7
x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: baffoni, Assigned: Fallen)

Details

Attachments

(1 file)

Thunderbird 15.0.1 release, Lightning 1.7:

I'm trying to setup a connection to our mail server (CGpro, 5.x), but when I put a new calendar entry, I get this error:

Timestamp: 9/21/2012 9:00:31 AM
Error: [Exception... "'[JavaScript Error: "this_ is not defined" {file: "file:///C:/Users/baffoni/AppData/Roaming/Thunderbird/Profiles/1cg1672l.baffoni/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calMemoryCalendar.js" line: 517}]' when calling method: [calIOfflineStorage::modifyOfflineItem]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: file:///C:/Users/baffoni/AppData/Roaming/Thunderbird/Profiles/1cg1672l.baffoni/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calDavCalendar.js :: <TOP_LEVEL> :: line 778"  data: yes]

The server is asking for auth, so I think I have my path set correctly.
Attached patch Fix - v1 β€” β€” Splinter Review
Indeed, this is an error in the memory calendar when used as the offline cache and has been broken since 1.0 and bug 380060.

Normally you shouldn't run into this case though. Can it be that you have set the preference calendar.cache.type to memory? Setting back to the default ("storage") should work around the bug for now.

This patch should fix it, I haven't tested though.
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #663955 - Flags: review?(matthew.mecca)
Comment on attachment 663955 [details] [diff] [review]
Fix - v1

r=mmecca
Attachment #663955 - Flags: review?(matthew.mecca) → review+
When I got to Tbird config editor and type "calendar.cache.type", nothing comes up, where do I go to check that preference?
Pushed to comm-central changeset 567a0c810399
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0
Backported to releases/comm-aurora changeset bd445c8913dd
Target Milestone: 2.0 → 1.9
Backported to releases/comm-beta changeset f2ea5e2fa4f5
Target Milestone: 1.9 → 1.8
If that pref doesn't show up I really don't know why its happening to you. I hope this patch fixes it, otherwise we will have to dig a bit deeper. If you are comfortable modifying code, you could unpack your lightning.xpi, go into the calMemoryCalendar.js, and add:

cal.ERROR(cal.STACK(10));

to modifyOfflineItem. Then repack, install that Lightning and paste the stack here.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: