[jboss-dev-forums] [Design of JBoss Wiki] - Re: Portal 2.6 support...

bdaw do-not-reply at jboss.com
Wed Jul 11 05:57:07 EDT 2007


ok. This must be due the fact that wiki retrieves user using JBossRenderRequest.getUser(). and not UserModule method call. This method will return org.jboss.portal.identity.CachedUserImpl. It is used to not perform SQL query on every request. 

To workaround make every JBossRequest.getUser() call in wiki like this:

User user =  jbossRequest.getUser();
  | user = userModule.findUserById(user.getId());

I know its confusing. I need to add handling CachedUserImpl instance check internally in modules implementation to avoid such problems. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062887#4062887

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062887



More information about the jboss-dev-forums mailing list