make identity modules implementation handle CachedUserImpl properly
-------------------------------------------------------------------
Key: JBPORTAL-1570
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1570
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Identity
Affects Versions: 2.6 Final
Reporter: Boleslaw Dawidowicz
Assigned To: Boleslaw Dawidowicz
Fix For: 2.6.1 Final, 2.8 Final
When CachedUserImpl object is passed to identity modules it should be handled properly -
not throw
'java.lang.IllegalArgumentException: User is not a HibernateUserImpl user'
exception
In such cases a fresh instance need to be retrieved:
user = userModule.findUserById(user.getId());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira