KamoCRM

Return 422 (not 500) when member has no mailbox

FixEmailService
Ya
1 Julai 2026, 09:11 UTC
Mwandishi
Sage
Ahadi ya
1bd8dd0

listFolders and other read endpoints threw IllegalStateException from MailContext.toMailCredentials() when a member had no IMAP credentials provisioned, which the controller's catch-all turned into a 500. Add MailboxNotConfiguredException (a CapabilityNotSupportedException subclass, so it rides the existing rethrow paths) mapped to 422 MAILBOX_NOT_CONFIGURED — mirroring VoIP's not-configured semantics — so an un-provisioned mailbox reads as 'not set up' instead of a server error.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei