Hi Jake,
Actually, yes it does.
There is a bug in the cookie handling of the Java client library.
Updates to cookies already stored are not 'saved' in the cookie store.
If you do a list of calendars and then use the same
GoogleService/CalendarService object to insert into a secondary
calendar, you can sometimes get a RedirectRequiredException because of
conflicting gsessionid values in the URL query params and the S cookie
being sent.
The client lib has been updated on our side and a new version will be
distributed soon to resolve this issue.
In the meantime, there are several possible solutions:
Reduced performance
--------------------------------
1) Use a separate GoogleService/CalendarService instance for all
actions after retrieving the meta list of calendars.
2) Call service.setHandlesCookies(false). I think this will work, but
I have not tested it
Same performance, but a little more work on your side
-------------------------------------------------------------------------------
3) Update your version of GoogleService.addCookie to look something
like the following and rebuild the lib using the ant script present in
the distribution:
/**
* Adds a new GoogleCookie instance to the cache.
*/
public void addCookie(GoogleCookie cookie) {
assert handlesCookies;
if (cookies.contains(cookie)){
cookies.remove(cookie);
}
cookies.add(cookie);
}
Sorry for the inconvenience -- We will make a post when the new version
of the client lib is being distributed.
Hopefully one of the workarounds above or the new distribution solves
the problem you're experiencing.
Cheers,
-Ryan
On Jan 21, 9:56 am, "Jake" <[EMAIL PROTECTED]> wrote:
> Thanks for your continued support..
>
> getResponseBody result was null but calling the toString method for the
> error printed:
>
> com.google.gdata.util.RedirectRequiredException: Moved Temporarily
>
> Does that make the problem clearer?!
>
> Jake
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---