Use avatarType field + JDBC for photo URL generation to handle Hibernate proxies

FixSecurityService
ส่งแล้ว
19 เมษายน 2569 เวลา 00:56 UTC
ผู้เขียน
Kamo
ตั้งค่า
62ceff0

**************** previously used instanceof AvatarPhoto to determine avatar type and cast to read fileExtension. When Hibernate returns a base-class proxy (e.g. via lazy association), instanceof fails and no URL is generated. Fix mirrors the pattern already in **************** - Read type from avatar.getAvatarType() field first, instanceof as fallback - Fetch file_extension via JDBC instead of casting to AvatarPhoto subtype **************** line for "type" field similarly fixed to use getAvatarType() before falling back to instanceof.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์