[MAGNOLIA-4974] java.lang.ClassCastException during login with RescueSecuritySupport Created: 12/Apr/13  Updated: 17/Apr/13  Resolved: 15/Apr/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 4.5.9

Type: Bug Priority: Neutral
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

info.magnolia.jaas.sp.jcr.JCRAuthenticationModule call info.magnolia.cms.security.UserManager.updateLastAccessTimestamp(User). When RescueSecuritySupport is used then updateLastAccessTimestamp(User) leads to java.lang.ClassCastException. Because our user is instance of info.magnolia.cms.security.RescueSecuritySupport.RescueUser but we try to cast him to info.magnolia.cms.security.MgnlUser. It doesn't have effect to authentication, only stacktrace is logged.



 Comments   
Comment by Jan Haderka [ 17/Apr/13 ]

Tested implicitly by test committed for MAGNOLIA-4973

Generated at Mon Feb 12 04:00:47 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.