Closed Bug 1103637 Opened 10 years ago Closed 9 years ago

google agendas desappear if not connected

Categories

(Calendar :: Provider: GData, defect, P1)

Lightning 3.3
x86_64
Linux

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gilles.deloustal, Assigned: Fallen)

References

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20141013200257

Steps to reproduce:

High
My googles agendas disappear if I don't have any internet connexion at thunderbird startup : 

linux ubuntu 14.04
thunderbird 31.2.0
lightning 3.3.1
provider for google agenda 1.0.2
messaging menu and unity launcher integration 1.3.1
thunderbird message filter import/export enhanced 1.0.3


Actual results:

I start th, my google agendas are shown
I close the connection, I stop th
I re-start th, my google agendas are not shown



Expected results:

At re-start, my google agendas use to be shown even when connexion was down. Apparently the option display even out connexion does'nt work anymore.

Thank you for helping
Severity: normal → major
Priority: -- → P3
Component: Untriaged → Provider: GData
Product: Thunderbird → Calendar
Version: 31 → Lightning 3.1
Version: Lightning 3.1 → Lightning 3.3
This might help figure out why events are disappearing from the view, thanks for mentioning this. I'll need a little more info about how you are offline:

* When starting Thunderbird, does it start in offline mode right away (see computer icon in the status bar, does it contain a red X from the beginning?

* Are you connected to your wifi other other source of internet, but the internet connection is not available? Or are you not connected to your network at all when starting Thunderbird?

Could you 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 what is happening when you start up Thunderbird in offline mode and the events disappear?


After each test, please reset the calendar back to a state where you have all events, for example by removing it from the calendar list in Lightning and re-subscribing to it when you are online.
Flags: needinfo?(gilles.deloustal)
Assignee: nobody → philipp
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: P3 → P1
Referred from bug 1103632 which is a duplicate of this one. I keep thunderbird in online mode; but often open it when not connected to the network, in order to use the calendar. The error console report when I do this is shown below. Hope this helps

Could not read chrome manifest 'file:///C:/Program%20Files%20(x86)/Mozilla%20Thunderbird/chrome.manifest'. 

Could not read chrome manifest 'file:///C:/Program%20Files%20(x86)/Mozilla%20Thunderbird/extensions/%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D/chrome.manifest'. Timestamp: 05/12/2014 14:51:50

Warning: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
Source File: resource://gre/modules/Preferences.jsm

Line: 378 [calTimezoneService] using d:\mozilla profiles\xuc79kq9.default\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\timezones.sqlite 

[calTimezoneService] timezones version: 1.2014b Timestamp: 05/12/2014 14:51:50

Warning: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
Source File: resource://gre/components/steelApplication.js

Line: 783 [calGoogleSessionManager] Creating session mundivagante1@gmail.com 

[calICSCalendar] Refreshing UKHolidays 

[calCachedCalendar] Performing playback operation add on 0 items to gc 

[calCachedCalendar] Performing playback operation modify on 0 items to gc 

[calICSCalendar] Unable to load stream - status: 2152398878 

[calCachedCalendar] Performing playback operation delete on 0 items to gc 

[calCachedCalendar] Doing changelog based sync for calendar googleapi://mundivagante1@gmail.com/?calendar=mundivagante1%40gmail.com&tasks=%40default 

[calGoogleSession] Token expired 1417791112 seconds ago, resetting

 [calGoogleCalendar] Logging in session mundivagante1@gmail.com 

[calGoogleCalendar] No access token for mundivagante1@gmail.com, refreshing token 

[calGoogleSession] Adding item https://www.googleapis.com/calendar/v3/users/me/calendarList/mundivagante1%40gmail.com to queue 

[calGoogleSession] Adding item https://www.googleapis.com/calendar/v3/calendars/mundivagante1%40gmail.com/events to queue 

[calGoogleSession] Adding item https://www.googleapis.com/tasks/v1/lists/%40default/tasks to queue 

[calGoogleCalendar] Failed to acquire a new OAuth token for mundivagante1@gmail.com data: null 

[JavaScript Error: "[calGoogleSession] Authentication failure: null"] [calGoogleCalendar] Error syncing:
2147500037:[Exception... "null"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gdata-provider/modules/gdataSession.jsm :: calGoogleSession.prototype.login/authFailed :: line 247"  data: no]

 [JavaScript Error: "[calCachedCalendar] replay action failed: null, uri=googleapi://mundivagante1@gmail.com/?calendar=mundivagante1%40gmail.com&tasks=%40default, result=null, op=[xpconnect wrapped calIOperation]"] 

[calCachedCalendar] replayChangesOn finished.

[calCachedCalendar] sync queue empty.
Do the events immediately disappear after this happens?
Yes - sometimes they appear momentarily; mostly I just get a blank calendar
I've found a possible solution for this. It seems calendars are disabled even if the error is a simple connection error. The better option is to only disable if the user has cancelled the login dialog. I have changed this locally and will push the code in bug 1079189. I will also upload a new test version in bug 1106047, please test the (upcoming) third prerelease to see if it fixes the issue. If not, please reopen this bug.
Blocks: 1079189
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(gilles.deloustal)
Resolution: --- → FIXED
I de-installed lightning 331 and provider for google aagenda 102
I re-installed lightning 331 and provider for google aagenda 103

and it works properly.

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