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

RESOLVED FIXED in 1.8

Status

Calendar
Lightning Only
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Michael Baffoni, Assigned: Fallen)

Tracking

Lightning 1.7
x86_64
Windows 7

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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.
(Assignee)

Comment 1

5 years ago
Created attachment 663955 [details] [diff] [review]
Fix - v1

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+
(Reporter)

Comment 3

5 years ago
When I got to Tbird config editor and type "calendar.cache.type", nothing comes up, where do I go to check that preference?
(Assignee)

Comment 4

5 years ago
Pushed to comm-central changeset 567a0c810399
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0
(Assignee)

Comment 5

5 years ago
Backported to releases/comm-aurora changeset bd445c8913dd
Target Milestone: 2.0 → 1.9
(Assignee)

Comment 6

5 years ago
Backported to releases/comm-beta changeset f2ea5e2fa4f5
Target Milestone: 1.9 → 1.8
(Assignee)

Comment 7

5 years ago
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.