question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Calendar Connector - 'Update step' not allowing single field update

See original GitHub issue

See also https://issues.jboss.org/browse/ENTESB-11442

This is a…


[ ] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Documentation issue or request

Description

Google Calendar connector action ‘Update Event’ doesn’t allow partial update of an event.

This issue applies to a use-case where Update Event is used on its own, not depending on a data input from preceding step, e.g. timer -> ‘Update event’.

When user specifies calendar and eventId, and changes only ‘location’ in the form, I would expect, that only that single field is being attempted to be updated.

Pre-filling values into the form is not a valid solution, as it is valid only design time, not during runtime (event could have been updated meanwhile). Rather we’d need to handle the form input as a selective update, see https://developers.google.com/calendar/v3/reference/events/patch .

To illustrate the issue, what I see is, that event the date/time fields are being attempted to be updated even though I set only ‘location’ in the form. The error I get:

org.apache.camel.RuntimeCamelException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Missing end time.",
    "reason" : "required"
  } ],
  "message" : "Missing end time."
}
	at org.apache.camel.component.google.calendar.GoogleCalendarProducer.doInvokeMethod(GoogleCalendarProducer.java:51)
	at org.apache.camel.util.component.AbstractApiProducer$1.run(AbstractApiProducer.java:86)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Missing end time.",
    "reason" : "required"
  } ],
  "message" : "Missing end time."
}
	at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)
	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1065)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
	at org.apache.camel.component.google.calendar.GoogleCalendarProducer.doInvokeMethod(GoogleCalendarProducer.java:49)
	... 8 more

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
oscerdcommented, Jun 25, 2019

Sorry for the confusiob

0reactions
heiko-brauncommented, Sep 7, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems importing - Google Calendar Help
If you're getting an error while importing information into Google Calendar, or if the results look wrong, use the tips below to help...
Read more >
Common Problems with Google Calendar - Zapier
If older events in Google Calendar are updated, this can cause the ... Ensure that the date on that field is not before...
Read more >
Handle API errors | Google Calendar API - Google Developers
The event update request is attempting to set one of the shared event properties in a copy that isn't the organizer's. Shared properties...
Read more >
The Ultimate Guide To Google Calendar
Google Calendar is one of my favorite tools. ... Not every calendar allows that change but it can be a useful way to...
Read more >
Google Calendar Integration - monday.com Support
Step 1 - Add a date column and locate the integration recipes ... The one way sync is from monday to Google so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found