SuiteCRM-Core/public/legacy/include/CalendarSync
Clemente Raposo 1c06022392 Re-retrieve OAuth connection after save to get decrypted fields
SugarBean::save() mutates db_encrypted fields in-place via encrpyt_before_save(), leaving access_token and refresh_token in encrypted state on the bean. validateAndRefreshOAuthConnection then reads the encrypted refresh_token and sends it to Google, causing refresh to fail. Use getReloadedBean to bypass the BeanFactory cache and trigger decrypt_after_retrieve on a fresh instance.

Sanitize legacy user full_name during Google Calendar sync migration
2026-04-28 23:35:38 +01:00
..
application Merge next into suite 8 2026-04-23 08:23:18 +01:00
domain Merge next into suite 8 2026-04-23 08:23:18 +01:00
Extension/CalendarProviders Merge next into suite 8 2026-04-23 08:23:18 +01:00
infrastructure Sanitize Google provider exception messages to prevent UTF-8 encoding errors 2026-04-28 23:31:02 +01:00
migrations Re-retrieve OAuth connection after save to get decrypted fields 2026-04-28 23:35:38 +01:00
.gitignore Merge next into suite 8 2026-04-23 08:23:18 +01:00
CalendarSync.php Merge next into suite 8 2026-04-23 08:23:18 +01:00
CalendarSyncInterface.php Merge next into suite 8 2026-04-23 08:23:18 +01:00