google-api-java-client icon indicating copy to clipboard operation
google-api-java-client copied to clipboard

After deleting an event, get() call is being successful

Open KSVarun opened this issue 4 years ago • 1 comments

Environment details

  1. Google calendar API
  2. OS type and version: Mac OS
  3. Java version: 1.8
  4. google-api-client version(s): 1.30.9

Steps to reproduce

  1. Create an event with Event event = service.events().insert(calendarId, event).execute();
  2. Delete the event with service.events().delete(calendarId, event.getId()).execute();
  3. Get the event with event = service.events().get(calendarId, event.getId()).execute();

External references such as API reference guides

https://developers.google.com/calendar/v3/reference/events/insert https://developers.google.com/calendar/v3/reference/events/delete https://developers.google.com/calendar/v3/reference/events/get

.get() call should fail right? after deleting the event. But I am able to get a successful response with appropriate details of previously created event.

Thanks!

KSVarun avatar Jun 16 '20 06:06 KSVarun

It seems deleting an event won't actually delete the event but just tags it as cancelled. Hence when we do a get call we will be able to fetch the event.

Correct me if am wrong.

KSVarun avatar Jun 17 '20 06:06 KSVarun

Closing this issue as we are unable to provide adequate customer support through this forum. If you feel there is a bug or a feature request associated with this ticket, please open a new issue. Otherwise, https://cloud.google.com/support is best able to provide timely answers to API-specific questions.

burkedavison avatar Sep 26 '24 18:09 burkedavison