Last Comment Bug 804025 - Provider for Google calendar can't interact with actual calendar if cache is enabled
: Provider for Google calendar can't interact with actual calendar if cache is ...
Status: RESOLVED INVALID
:
Product: Calendar
Classification: Client Software
Component: Provider: GData (show other bugs)
: Lightning 1.8
: All All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-21 17:30 PDT by Alexandre Demers
Modified: 2012-11-05 23:31 PST (History)
0 users
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description Alexandre Demers 2012-10-21 17:30:55 PDT
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4

Steps to reproduce:

Updated to TB 16, Lightning 1.8, Gdata provider 0.18pre.


Actual results:

Google calendars will not sync (can't remove, add or sometime see) if cache is enabled.


Expected results:

It should sync, but it  doesn't. Also, on slower systems I'm using, TB will hang for a long time when it tries to sync. If I disable "cache", it works fine.
Comment 1 Alexandre Demers 2012-10-21 17:36:10 PDT
Here is what is displayed in the log when I try to add an event while cache is enabled:
Timestamp: 10/21/2012 08:31:53 PM
Error: [Exception... "'JavaScript component does not have a method named: "addItemOrUseCache"' when calling method: [calIChangeLog::addItemOrUseCache]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///home/dema1701/.thunderbird/sd7xk323.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCachedCalendar.js :: <TOP_LEVEL> :: line 716"  data: no]
Source File: resource://calendar/modules/calUtils.jsm -> file:///home/dema1701/.thunderbird/sd7xk323.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCachedCalendar.js
Line: 716

Timestamp: 10/21/2012 08:31:53 PM
Error: NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED: 'JavaScript component does not have a method named: "addItemOrUseCache"' when calling method: [calIChangeLog::addItemOrUseCache]
Source File: resource://calendar/modules/calUtils.jsm -> file:///home/dema1701/.thunderbird/sd7xk323.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCachedCalendar.js
Line: 716

When trying to delete an event:
Timestamp: 10/21/2012 08:32:44 PM
Error: [Exception... "'JavaScript component does not have a method named: "deleteItemOrUseCache"' when calling method: [calIChangeLog::deleteItemOrUseCache]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///home/dema1701/.thunderbird/sd7xk323.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCachedCalendar.js :: <TOP_LEVEL> :: line 821"  data: no]
Source File: resource://calendar/modules/calUtils.jsm -> file:///home/dema1701/.thunderbird/sd7xk323.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCachedCalendar.js
Line: 821

Timestamp: 10/21/2012 08:32:44 PM
Error: An error occurred executing the calendar_delete_event_command command: [Exception... "'JavaScript component does not have a method named: "deleteItemOrUseCache"' when calling method: [calIChangeLog::deleteItemOrUseCache]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///home/dema1701/.thunderbird/sd7xk323.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCachedCalendar.js :: <TOP_LEVEL> :: line 821"  data: no]
Source File: chrome://global/content/globalOverlay.js
Line: 95
Comment 2 Stefan Sitter 2012-10-21 23:26:13 PDT
You are mixing versions that are not compatible. 

The beta release 0.18pre of the Provider for Google calendar extension works only with the beta release of Lightning 1.9. For stable release Lightning 1.8 use stable release Provider for Google Calendar 0.17.

Philipp, maybe you can correct the min/max version information on a.m.o to ensure that the extension cannot be installed in a Thunderbird release that doesn't match the requirements?
Comment 3 Alexandre Demers 2012-10-22 05:25:17 PDT
For the info, 0.18pre installed itself after upgrading TB on Windows. I had to manually download it on Linux to test if it was doing the same. It's good to know, I'll revert to 0.17 on my Windows systems and see if it fixes things.
Comment 4 Alexandre Demers 2012-10-22 06:33:57 PDT
OK, with 0.17, everything works when cache is enabled.
Comment 5 Stefan Sitter 2012-11-05 23:31:59 PST
Resolving as invalid per previous comments. I filed bug 804302 to ensure that the extension will only install in the correct Thunderbird version.

Note You need to log in before you can comment on or make changes to this bug.