Closed Bug 452818 Opened 16 years ago Closed 16 years ago

getItem() returns no item after an event is created in the Google calendar

Categories

(Calendar :: Provider: GData, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chris, Assigned: Fallen)

References

Details

(Whiteboard: [gdata-0.5])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: Google calendar provider 0.5pre 28-Aug-2008 19:54

Hello,

There is a problem with the getItem() function when trying to retrieve an event which has been created on Google calendar web site. It returns a null item with no error. Investigations show that it was caused by the following portion of code in calGoogleCalendar.js/cGC_getItem_response_onResult:

			var itemEntry = xml.entry.(id.substring(id.lastIndexOf('/') + 1) == aOperation.itemId ||
                                       gCal::uid.@value == aOperation.itemId ||
                                       gd::extendedProperty.(@name == "X-MOZ-SYNCID").@value == aOperation.itemId);

It raises the following exception (not traced even when debug logs are enabled):

Exception = ReferenceError: reference to undefined XML name http://schemas.google.com/g/2005::extendedProperty

If the code part "gd::extendedProperty.(@name == "X-MOZ-SYNCID").@value == aOperation.itemId" is removed, then getItem() behaves properly.

This error prevent BirdieSync from synchronizing events from the Google calendar.

Let me know if you need more information.
Thanks a lot for your help.


Reproducible: Sometimes

Steps to Reproduce:
Create an event on the Google calendar.
Then use the getItem() function to retrieve it.
Actual Results:  
The getItem() function returns a null item.

Expected Results:  
The getItem() function should return the requested item.
Hello Chris,

I´ve noticed this bug too and its part of a different patch I have been preparing. I´ll take care as soon as I get back from my vacation.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Will be fixed with bug 428851
Assignee: nobody → philipp
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [gdata-cvs]
Target Milestone: --- → 0.9
Thanks a lot Philipp !
Whiteboard: [gdata-cvs] → [gdata-0.5]
You need to log in before you can comment on or make changes to this bug.