roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dibyendu Chandra (JIRA)" <>
Subject [Roller-JIRA] Updated: (ROL-1481) User Session management problem
Date Wed, 08 Aug 2007 07:20:25 GMT


Dibyendu Chandra updated ROL-1481:


I have set keys accordingly and it seems the similar problem is not appearing. But there are
other session related problem I am facing which is very rare and difficult to reproduce. 

Here is one such situation: 

As per my requirement I needed "Comments" option available only for registered users. User
has to login to make a comment. I have disabled username and email fields for user's entry
and those are being populated taking UserData from session.

I have done some changes in org.apache.roller.ui.rendering.model.UtilitiesModel class to incorporate
those methods to get user's fullname and email address:

public String getUserFullName() {
    	String fullName = null;
    	try {
    		RollerSession rses = RollerSession.getRollerSession(request);
    		if (rses != null && rses.getAuthenticatedUser() != null) {
    		    fullName = rses.getAuthenticatedUser().getFullName();
    	} catch (Exception e) {
            log.warn("ERROR: checking user authorization", e);
    	return fullName;

And similarly done for getUserEmailAddress(). 

Updated name and email field values in  WEB-INF\velocity\weblog.vm file with $utils.getUserFullName()
and $utils.getUserEmailAddress() respectively.

Usually it works fine... but sometime in production system (3 odd cases in 115 transactions
for comment entry) it is displaying different username (may be the last logged-in user or
who has logged concurrently). 

It seems still there is some session problem exists. Is there any other ways to implement

> User Session management problem
> -------------------------------
>                 Key: ROL-1481
>                 URL:
>             Project: Roller
>          Issue Type: Bug
>    Affects Versions: 3.1
>         Environment: Windows XP, MySql
>            Reporter: Dibyendu Chandra
>            Assignee: Roller Unassigned
>            Priority: Critical
>         Attachments:
> I am trying to customized Roller 3.1. While testing with multiple users (100+) with concurrent
access, sometimes I am facing a  problem with user session. 
> Sometimes if I open a new browser and type url of frontpage, Frontpage is displaying
Welcome "different user name"  and a "logout" link.  As if other user is logged in into my
system. It seems this thing happens when the other user is logged in at the same time into
a different system. 
> Is it a known bug? 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message