7 messages in com.googlegroups.google-calendar-help-dataapiRe: Bug found in Delete process (Dumm...
FromSent OnAttachments
BigAL25 Jun 2007 13:04 
Trevor Johns25 Jun 2007 17:41 
BigAL26 Jun 2007 05:22 
BigAL26 Jun 2007 06:05 
Ryan Boyd (Google)26 Jun 2007 08:09 
Trevor Johns26 Jun 2007 09:41 
Ryan Boyd (Google)26 Jun 2007 10:21 
Subject:Re: Bug found in Delete process (Dummy Test Event is Create) !!!
From:BigAL (alan@gmail.com)
Date:06/26/2007 06:05:36 AM
List:com.googlegroups.google-calendar-help-dataapi

Trevor, Please accept my apology.

The delete process works fine with both methods your code and mine.

The problem with the creation of ('Test') event was entirely my fault; I had some old code at the bottom of my test environment source program, which produced the dummy events:

The following is the code needed to remove: /* $service = new Zend_Gdata_Calendar($client); $event= $service->newEventEntry(); $event->title = $service->newTitle("Test"); $event->visibility = $service->newVisibility('http:// schemas.google.com/g/2005#event.private'); $newEvent = $service->insertEvent($event); */

Greetings Trevor,

Thanks for responding to my problem.

I changed the code according to your fix on the deleteEntryByUrl, the event in question were deleted but the same thing has occurred, Google Calendar automatically created a (Test) event record on my ('Default') user calendar with event Date exactly the Date and Time of the Delete transaction, {(I noticed a display of a lock icon after the word (Test) showing on the event calendar}. Weird !!!

I do not know what to think anymore. {:(

BigAL

On Jun 25, 8:41 pm, Trevor Johns <tre@tjohns.net> wrote:

On Jun 25, 1:04 pm, BigAL <alan@gmail.com> wrote:

[...snip...] The above code will delete the Events but will also create automatically a (Test) event by Google Calendar at the 'Default' user, regardless if events where there to delete or not there to delete (Test) event is created with Start Date and Time of the Delete transaction. Why?

Ryan, what do you think is happening is it a bug or what...

Thanks,

HI BigAL, I tried to reproduce your problem on my end but I wasn't successful. However, I did notice an error in your code that might be causing problems.

Specifically, this line: deleteEntryByUrl($client, $event->id->text);

Should be changed to this: deleteEntryByUrl($client, $event->getLink('edit')->href);

The difference here is that the edit link (which is what's returned by "getLink('edit')") also has a version number appended to the end. If you try to perform a delete operation without that version number you should get a HTTP 400/Bad Request error back from the server. I'm actually a little curious how the code you provided was able to delete events as is. :)

In any case, try making that change and see if things don't improve. Afterwords, reply to this post and let me know how things went. If you're still experiencing the problem I'll take another look.

- Show quoted text -