Closed Bug 1106047 Opened 11 years ago Closed 11 years ago

Compatibility for Postbox

Categories

(Calendar :: Provider: GData, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Fallen, Assigned: Fallen)

References

Details

Attachments

(1 file, 3 obsolete files)

The Postbox folks have asked me to make the neweset Provider compatible with Postbox 3.0.x. I will be using this bug for tracking and uploading a few pre-release builds.
Attached file Provider 1.0.3 for Postbox - v1 (obsolete) β€”
Here is an initial version. It hasn't gone through a lot of testing, but I was able to log in, add calendars using the wizard, add/modify/delete events and use the event dialog. This version should be working for all Lightning versions 1.0b7 and up, it may even work in the old Sunbird 1.0b1. I'd appreciate your feedback mostly if this works in Postbox, but if you want to test it in other Lightning versions feel free to do so. If you run into issues, please enable calendar.debug.log and calendar.debug.log.verbose in the advanced config editor (Options > Advanced > General > Config Editor) and check the logs in the error console (Tools > Error Console) for any relevant log messages or errors.
I tried your new provider and it put postbox into a "Not Responding" state after a popup from google requested that I provide my login information for my account. Had to use safe mode to disable the add-on and I check the error log but nothing was found.
Quick Update. I deleted all of my calendar and was able to reload the add-on. I added on calendar and it threw this error and locked up postbox again. Here is the error Error: [Exception... "'[JavaScript Error: "calendar is null" {file: "chrome://calendar/content/calendar-task-editing.js" line: 134}]' when calling method: [calICompositeObserver::onDefaultCalendarChanged]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: resource://calendar/modules/calUtils.jsm ->
The locking up is a know issue even in Thunderbird. It happens for larger calendars. The workaround is to wait for an unreasonable amount of time, at least 20-30 minutes. Once the initial sync is done, each subsequent synchronization will be incremental and therefore very fast.
Philipp, thanks for your hard work with this. I'm not getting any calendar data either. Starting Postbox is normal, however a pop-up window appears every time, with a query for my Google password. As a precaution, I've made sure the Google captcha requirement is taken care of, but still no change to this behavior. The error message in the log says: Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.sessionHistory]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://global/content/bindings/browser.xml :: :: line 663" data: no] Source File: chrome://global/content/bindings/browser.xml Line: 670
Paul, did you try waiting for a long time after you've logged in as mentioned? Did you enable the debugging prefs I mentioned earlier?
I've waited, but will try again. Also, I didn't have both of those debugging switches turned on. Watching the behavior and sequence of things, a larger window opens briefly, followed by the open window requesting my Google password. Also, I've been sure to delete and reinstall both Lightning and your beta file. Looks like the same error message is produced: Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.sessionHistory]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://global/content/bindings/browser.xml :: :: line 663" data: no] Source File: chrome://global/content/bindings/browser.xml Line: 670 There are a significant number of warning messages, looks like all related to css coding? I can copy those here if that's helpful.
Have been using the updated provider for several days now and has worked well. My husband and I share a Google calendar on two laptops using Postbox as well as using the same Google calendar on our phones. We use Postbox on Window 7 and are running 3.0.11. Today I changed one instance of a recurring event to an alternate time. I did this change from Postbox and it apparently completed the change as I can see the change on my Google calendar and on my phone - both the recurring events at the normal time and the recurring event at the modified time. However, all occurrence of the task - the recurring events and the alternate event time for on event have been deleted from my calendar. I have reload the calendar, closed Postbox and reopened, turned on the debug logging and found no errors. Any thoughts on how to resolve this issue? Let me know if you need more information.
Sylvia, this is also a known issue for Thunderbird users. I will definitively fix it before the final release. Paul, I'm more interested in any errors or normal messages prefixed with [calGoogle... that might point to your issue.
Plugin seems to be working 95% right now, which is great!!! One bug I am seeing is, with Invitations, upon accepting, it is not removing the notification from the bottom bar. Eg. (with one invitation) bar reads: Invitations: 1
Attached file Provider 1.0.3 for Postbox - v2 (obsolete) β€”
This version fixes a few issues in v1, an upgrade is STRONGLY recommended. The most important fix is that some query parameters were not being sent, causing a full refresh on each synchronization run. I've also fixed the default reminders item from bug 1083934, an issue with snoozing recurring alarms and two issues with synchronization and vanishing events.
Attachment #8530272 - Attachment is obsolete: true
Philipp...the sign in issue got "resolved," installed the latest version, and seems to be working well now. No noticeable issues. I had a Google request for "permission to access" window opening up that was hidden, much to my surprise. When that was granted, all is better now.
(In reply to Mike Cormio from comment #11) > Plugin seems to be working 95% right now, which is great!!! > > One bug I am seeing is, with Invitations, upon accepting, it is not removing > the notification from the bottom bar. Eg. (with one invitation) bar reads: > Invitations: 1 Philipp Unfortunately, this still seems to be a problem with Provider 1.0.3 for Postbox - v2. Accepting an invitation does not remove it from the bottom bar (notification numbers). Mike
Phillipp, The new "Provider 1.0.3 for Postbox - v2" works pretty good, but here are the issues I am having. So, the calendars are big, it took overnight to sync up like you said, but now that it is all synced, it doesnt seem to refresh well when a new calendar event is created on google's web calendar. For example, lets say I make an event using google.com, it will take about 30 mins to an hour to show up in postbox/lightning. If I delete/change the event, the update takes even longer to happen. But, if I create an event in postbox/lightning, then it updates very quick onto the web calender on google. Also, is there a way to manually refresh the calendars in lightning? Thanks, Brian
Yes, the automatic update interval is capped at 30 minutes to reduce the number of requests. In Thunderbird there is usually a toolbar button to manually synchronize, provided by Lightning. You can trigger the same functionality by right clicking on the calendar list and selecting "Reload Remote Calendars". There is a hard limit on how often you can manually sync, but I think I set the timeout to under a minute.
I tried the v2 preview, and I have to say I'm amazed by the ease of use with the new authentication and calendar setup. I have no idea how long this has been available in the official builds for Thunderbird, but well done! Wasn't there a bug on file to change the initial sync experience, so it doesn't render the mail client unusable? Is that a Provider or Lightning thing?
The bug about the UI stalling is bug 1061363. The new authentication has been available since 1-2 months.
Just discovered that I could install the provider in Thunderbird via 'install from file' and pasting the url to this bugs attachment into the file dialog , did not know that was possible. :-)
Attached image GData Provider Setup: Calendar Duplicates (obsolete) β€”
This is probably for another bug, applying the the GData Provider in general: I just: 1. went through the calendar setup wizard up to the page with the individual calendars, 2. checked a couple of calendars, 3. went back a page 4. clicked "next" to the calendar page, checked calendars again, 5. and completed the wizard. Result: calendars where added twice, as selected in both "instances" of the selection wizard page.
Thomas, thanks for the report. I've fixed this locally and will include it in the next pre-release.
Lots of fixes, the most notable is I've unblocked the UI thread, synchronizing now doesn't block the UI. * Recurring events no longer disappear when modified * Recurring alarms are correctly snoozed * No more "this.mDeferred is null" when login fails * Removed lots of debugging messages * Improved module filesystem layout * Fixed comment 20 * Fix bug 1061363 - Syncing Lightning w/GDATA Provider blocks UI thread. * Fix bug 1103637 - Calendars get disabled when in offline mode * Fix bug 1082478 - Use application locale when showing OAuth window. * Fix bug 1085287 - Invalid time zone definition for start time. * Fix bug 1083934 - Google calendar provider ignores default new event/task reminder setting. If no one finds an issue with this version, I will upload it to addons.mozilla.org tomorrow. Please test and try to break something :-)
Attachment #8531609 - Attachment is obsolete: true
Attachment #8532817 - Attachment is obsolete: true
Installed and so far looks good, but it's only been a few minutes. I'll definitely reply here if I see any issues.
I installed and most calendars seem ok, but for Google Apps Calendars I can't dismiss or snooze reminders.
I can't download the attachment - it immediately tries to install in firefox
The calendar now seems to load & display fine when offline (& online). But it doesn't accept any new events or modifications to existing events whilst offline, though it does whilst online. This is probably related to the comment above about being unable to dismiss/snooze reminders? (my calendar didn't have got any outstanding reminders when I was checking it) Not a big deal to have to go online to use the calendar actively, but this did use to be possible (and will probably result in some grumpy comments from users?)
I can snooze reminders whilst online, but not when offline
Could you please share some logs when doing that? See comment 1 and the FAQ for how to set up.
Error console log when failing to create event when offline: [JavaScript Error: "[calGoogleSession] Authentication failure: null"] [JavaScript Error: "[calCachedCalendar] replay action failed: null, uri=googleapi://mundivagante1@gmail.com/?calendar=mundivagante1%40gmail.com&tasks=%40default, result=null, op=[xpconnect wrapped calIOperation]"] [JavaScript Error: "[calGoogleSession] Authentication failure: null"] [JavaScript Error: "[calGoogleCalendar] Adding Item test add event wile offline failed:2147500037: null"] ------------------------------------------------------------- Error console log when failing to modify event when offline: [JavaScript Error: "[calGoogleSession] Authentication failure: null"] [JavaScript Error: "[calGoogleCalendar] Modifying item Esrom mrkt failed:2147500037: null"] ------------------------------------------------------------ Error console log when failing to dismiss/snooze reminder when offline: nothing logged
I have loaded the add on and linked to my google calendar and every time I start Postbox it shows progress syncing and then dies arbitrarily along the way. It also brings up a reminders window and I can't seem to dismiss all. From the error log: Error: [calGoogleCalendar] Modifying item Weekly ELT - 12pm EST/ 9am PST/ 3pm CET failed:2147500037: { "error": { "errors": [ { "domain": "global", "reason": "forbidden", "message": "Forbidden" } ], "code": 403, "message": "Forbidden" } }
David, I wasn't able to reproduce your issue. For me adding events while offline works without issues. Here is what I did: 0. Previously set up calendar which is synchronized 1. Go into offline mode 2. Add an event by dragging in the calendar view. Do you have different steps? Any small difference is important. I also tried replacing step 1 with simulating a connected network but missing internet connection. dmartinri, your issue is being debugged in bug 1101175. Could you answer the questions there? It looks like the most important issues are handled and since I can't reproduce the offline changing issue I think its worth a try to release 1.0.3. I will upload this to AMO in a moment. Keep your fingers crossed! I'm closing this bug as FIXED. David, if you can still reproduce please open a new bug.
Blocks: 1079189
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I'm still having trouble dismissing reminders. Error: uncaught exception: [Exception... "'<error>' when calling method: [calICalendar::modifyItem]" nsresult: "0x804a0002 (<unknown>)" location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///Users/DenisMartin-RMMacAir/Library/Application%20Support/Postbox/Profiles/3ou6sz89.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calAlarmService.js :: cAS_snoozeAlarm :: line 226" data: no]
I'm using a calendar with 520 events - originally created in lightning, then exported to google calendar using provider for google. I create events simply by double-clicking on a date in lightning and filling in the fields in the popup. With Provider 1.03 this works fine when on-line; and I have no problem dismissing or snoozing events when on-line. But lightning simply doesn't respond when I try to add an event when the computer is off-line - giving the error dialogue: [JavaScript Error: "[calGoogleSession] Authentication failure: null"] [JavaScript Error: "[calGoogleCalendar] Adding Item test offline failed:2147500037: null"] [JavaScript Error: "[calGoogleCalendar] Adding Item test offline failed:2147500037: null"] [JavaScript Error: "[calGoogleCalendar] Adding Item test offline failed:2147500037: null"] Hope this helps.
Events for the last two weeks or so are still failing to display when I start thunderbird when the computer is offline, if the computer has been turned off: [JavaScript Error: "[calGoogleSession] Authentication failure: null"] [JavaScript Error: "[calCachedCalendar] replay action failed: null, uri=googleapi://mundivagante1@gmail.com/?calendar=mundivagante1%40gmail.com&tasks=%40default, result=null, op=[xpconnect wrapped calIOperation]"] But if I just re-start the computer in offline mode (i.e. without turning it off), and then start thunderbird, all the events display correctly Hope this also helps.
When dismissing a calendar event the following error is received in the error log: "Error: [calGoogleCalendar] Modifying item PM Lunch & Learn: Period End Reconciliation Overview failed:2147500037: { "error": { "errors": [ { "domain": "global", "reason": "forbidden", "message": "Forbidden" } ], "code": 403, "message": "Forbidden" } }" Not sure the cause but I am going to uninstall Lightning and the Google Connect Addin and re-set it up.
When I start PB a window of reminders pops up. If it try to delete all I get the following error: Error: uncaught exception: [Exception... "'<error>' when calling method: [calICalendar::modifyItem]" nsresult: "0x804a0002 (<unknown>)" location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///Users/DenisMartin-RMMacAir/Library/Application%20Support/Postbox/Profiles/3ou6sz89.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calAlarmService.js :: cAS_dismissAlarm :: line 243" data: no]
I have the same problem as dmartinri@gmail.com. Here are all the error messages I got: Warning: Use of getAttributeNodeNS() is deprecated. Use getAttributeNS() instead. Source File: chrome://messenger/content/messenger.xul Line: 0 Error: attList is null Source File: chrome://mboximport/content/menufunctions.js Line: 18 Error: Invalid alarm for item: 5b3c08fc-4f6a-4b12-9f16-9d6d777b28db (BEGIN:VALARM X-KDE-KCALCORE-ENABLED:TRUE END:VALARM ) exception: [Exception... "'Illegal value' when calling method: [calIAlarm::icalComponent]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///C:/Users/TIM/AppData/Roaming/Postbox/Profiles/3hqchl1k.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calItemBase.js :: cIB_setItemBaseFromICS :: line 880" data: no] Error: uncaught exception: [Exception... "'<error>' when calling method: [calICalendar::modifyItem]" nsresult: "0x804a0002 (<unknown>)" location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///C:/Users/TIM/AppData/Roaming/Postbox/Profiles/3hqchl1k.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calAlarmService.js :: cAS_dismissAlarm :: line 243" data: no]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: