Query avatar_photos extension via SQL instead of Hibernate proxy

FixSecurityService
Shipped
2026年3月30日 04:33 UTC
Author
Kamo
Commit
973ee81

avatarRepository.findById() returns a Hibernate proxy (Avatar$HibernateProxy) that fails instanceof AvatarPhoto check. This caused the file extension to always default to 'png' even when the actual file is 'jpg'. The avatar URL was https://.../{hash}.png but the file was stored as {hash}.jpg — resulting in 404 for every avatar image in kamo-meet. Now queries avatar_photos.file_extension directly via JdbcTemplate, bypassing the Hibernate proxy entirely.

All changes

就像你看到的运输?

每一个都自动更新您工作空间的地盘。 开始自由,看它成长 一周又一周.

永远开始自由查看定价