KamoCRM

Reload avatar from repository to resolve Hibernate proxy instanceof issue

FixSecurityService
Shipped
26 நவம்பர், 2025 அன்று 6:54 PM UTC
Author
snadjafinia
Commit
0f5988a

- Avatar entities loaded from relationships may be Hibernate proxies that fail instanceof checks - Reload avatar from repository to get actual entity type (AvatarPhoto or AvatarAvatar Creator) - Add fallback logic using reflection if reload fails - Fixes 'Unknown avatar type' error causing null avatar URLs

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing