Bug 511884

Summary: akonadi_google_resource allows event creation to silently fail if too many reminders are added
Product: [Frameworks and Libraries] Akonadi Reporter: Joe E <jenders97>
Component: Google ResourceAssignee: kdepim bugs <pim-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: carl, dvratil, winter
Priority: NOR    
Version First Reported In: 6.5.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of the google calendar web interface

Description Joe E 2025-11-09 21:15:32 UTC
SUMMARY
If you create an event in a google calender (tested in Merkuro and KOrganizer) and add too many events (google calendar only allows 5 reminders), the event generation will fail without telling you. A log is created (see below), but no error is shown in either program. I tested and event creation is successful if you use 5 or less reminders. I considered opening a bug in both programs (and can if that would be helpful), but since the log was from akonadi_google_resource, I put it here.

Log from journalctl (with my email address removed):
akonadi_google_resource[7244]: Bad request QUrl("https://www.googleapis.com/calendar/v3/calendars/MY_EMAIL[@]gmail[dot]com/events?sendUpdates=none&prettyPrint=false") , Google replied ' "{\"error\":{\"errors\":[{\"domain\":\"calendar\",\"reason\":\"eventRemindersCountExceedsLimit\",\"message\":\"The event exceeds the allowed maximum number of reminders.\"}],\"code\":400,\"message\":\"The event exceeds the allowed maximum number of reminders.\"}}" '


STEPS TO REPRODUCE
1. Create event on a google calendar in Merkuro or KOrganizer
2. add more than 5 reminders

OBSERVED RESULT
Event is not created in google calendar, no error is shown, above log message is created

EXPECTED RESULT
Event is created in google calendar.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-300.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 32 GiB of RAM (31.0 GiB usable)
Graphics Processor: AMD Radeon RX 7900 XT

ADDITIONAL INFORMATION
Please let me know if any more information is required.
Comment 1 Allen Winter 2025-11-09 21:29:46 UTC
looks like that message is coming from Google.  I don't think we have any such limitation in our google resource

what happens if you try to add more than 5 reminders using the google calendar web interface.
Comment 2 Joe E 2025-11-09 21:33:20 UTC
Created attachment 186659 [details]
screenshot of the google calendar web interface
Comment 3 Joe E 2025-11-09 21:35:30 UTC
(In reply to Allen Winter from comment #1)
> looks like that message is coming from Google.  I don't think we have any
> such limitation in our google resource
> 
> what happens if you try to add more than 5 reminders using the google
> calendar web interface.

Hi Allen. The web interface just hides the button at 5 reminders and doesn't allow you to add more. I attached a screenshot for reference. Thanks for your help.
Comment 4 Allen Winter 2025-11-10 13:41:04 UTC
might be nice if the incidence editor would warn the user that google limits the number of reminders.

anyway, closing this as not a bug
Comment 5 Joe E 2025-11-10 16:33:53 UTC
(In reply to Allen Winter from comment #4)
> might be nice if the incidence editor would warn the user that google limits
> the number of reminders.
> 
> anyway, closing this as not a bug

Would this be a better thing to open to the individual apps or is this more a feature request? Thanks for taking a look at this. Hopefully we can get this to be work better in the future.