Ebeo / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Query returns deleted and modified recurring event even after all events are deleted from calendar #466

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Demo application from SDK using Google.GData.Calendar v1.7.0.1 
returns deleted events from the calendar.  Is there a way to prevent this using 
some parameter settings.

EventFeed calFeed = service.Query(query) as EventFeed;

What steps will reproduce the problem?
1. Create recurring event in calendar from browser to repeat any 2 days of the 
week e.g. Wed, Thu starting from e.g. 1/5/2011. StarTime 6:00 AM, EndTime 7:00AM

2. Modify 1 instance of the event e.g. 1/12/2011 StarTime 8:00 AM, EndTime 
9:00AM

3. Delete 1 instance of the event e.g. 1/13/2011

4. Now delete all occurences of the event from the browser

5. The sample query will still return 2 events (Modifed and Deleted)

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by vjay.n...@gmail.com on 6 Jan 2011 at 4:55

GoogleCodeExporter commented 8 years ago
Having the same problem with my query from c#.
I still receive the exception-events from the recurring-event, even if I delete 
the whole recurring event.

Original comment by ba.m.al...@googlemail.com on 19 Jan 2011 at 2:52

GoogleCodeExporter commented 8 years ago
I can't reproduce this issue.

I followed the steps to create a recurring event, modify one instance, delete 
another and then all instances (including the modified and the deleted). 
The following code returns no instances of the recurring event:

------------
CalendarService service = new CalendarService("exampleCo-exampleApp-1");
service.setUserCredentials("username", "password");

EventQuery query = new EventQuery();
query.Uri = new 
Uri("https://www.google.com/calendar/feeds/default/private/full");

EventFeed calFeed = service.Query(query);
------------

Can you still reproduce it?
Can you share the code you are using?

Original comment by ccherub...@google.com on 9 Mar 2011 at 4:24

GoogleCodeExporter commented 8 years ago
Hello.

I do receive this exception-events only if I delete the recurring event using 
the delete-command from c#. 
---
myRecurringEvent.Delete();
---
If I delete the recurring event from the browser, I do not receive any 
exceptions in further feeds.

Original comment by ba.m.al...@googlemail.com on 10 Mar 2011 at 11:15

GoogleCodeExporter commented 8 years ago
Can you share the code that creates the recurring event, performs the edits and 
 then deletes it so that no manual interaction with the Calendar UI is required 
to reproduce the issue?

Original comment by ccherub...@google.com on 10 Mar 2011 at 11:27

GoogleCodeExporter commented 8 years ago
Hello.

I create an exception this way:

---

EventEntry newEntry = new EventEntry(subj, desc, loc);

newEntry.OriginalEvent = new OriginalEvent();
newEntry.OriginalEvent.IdOriginal = idOriginal;
newEntry.OriginalEvent.OriginalStartTime = new When(dtstart, dtend);

newEntry.Status = new EventEntry.EventStatus();
newEntry.Status.Value = EventEntry.EventStatus.CANCELED.Value;

Uri postUri = new Uri("https://www.google.com/calendar/feeds/" + 
googleCalendarFolder + "/private/full");

AtomEntry insertedEntry = myService.Insert(postUri, newEntry);

---

I hope I got anything important. After running this code, I can see an 
exception in my browser.

To delete the exception I simply call delete:

---
CalendarService myService = new CalendarService("GSyncService");
myService.setUserCredentials(googleUsername, googlePassword);

EventQuery query = new EventQuery();
query.Uri = new Uri("https://www.google.com/calendar/feeds/" + 
googleCalendarFolder + "/private/full");

EventFeed calFeed = myService.Query(query);

foreach (EventEntry entry in calFeed.Entries)
{
  entry.Delete();
}

---

I always receive an error in this code. It is not possible to delete this event.

Original comment by Pater...@googlemail.com on 21 Mar 2011 at 5:26

GoogleCodeExporter commented 8 years ago
Hello,

Unfortunately, it is not possible to un-specialized a recurrence exception 
through the API. The only way to make something similar would be to make the 
exception match the main recurring event.
If the exception was to cancel a particular instance of a recurring event, the 
solution would be to set this instance eventStatus back to "confirmed" instead 
of "canceled".

I hope this helped!
Best,
Alain

Original comment by ala...@google.com on 31 Mar 2011 at 10:55

GoogleCodeExporter commented 8 years ago

Original comment by ccherub...@google.com on 1 Apr 2011 at 9:29

GoogleCodeExporter commented 8 years ago
Issue 626 has been merged into this issue.

Original comment by ccherub...@google.com on 21 Sep 2012 at 9:29