voyent
ICEfaces 1.8 RC2 Issue when redirecting to a page ("User Session Expired" message is displayed)  XML
Forum Index -> Development Build Feedback Go to Page: 1, 2 Next 
Author Message
chrishantha

Joined: 04/Mar/2008 00:00:00
Messages: 153
Offline


I'm using ICEfaces 1.8 RC2 and "User Session Expired" message is displayed when redirecting to a page. (Faces Navigation with <redirect />)

When I check the logs, following message is there.
Code:
 2009-03-25 11:47:22,453 DEBUG RequestVerifier [http-8081-3] 
 Missmatched 'ice.session' value. Session has expired.


Issue is that "User Session Expired" message is displayed only when the pages is redirecting.

For example, suppose there are two pages "page01.jspx" and "page02.jspx"

There is a navigation rule to "page02.jspx" from "page01.jspx" with <redirect />

When navigating from "page01.jspx" to"page02.jspx", "User Session Expired" message is displayed during the transition period. Then "page02.jspx" is displayed and can continue without any issue.

I'm not using "Ajax Push Server" as I have deployed only a single ICEfaces applicaton.

I'll post more details later.

Isuru Perera
uweklosa

Joined: 09/Sep/2007 00:00:00
Messages: 26
Offline


I can confirm that we have the same issue between page redirects. It does only occure sometimes
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


I have tried with both ICEfaces 1.8 RC2 and the latest from the trunk but cannot reproduce it. I used both redirect and non-redirect navigation as well as turning Ajax Push on and off. Is there any other information you can provide?

Are you using Facelets or JSP?

Do you see it one browser version, several, or all?

Can you provide a small working example that shows the problem?

I'm attaching the navigation sample that I used. It's JSP-based and has 3 pages with a number of different navigation options (buttons, menus, etc.) for jumping around between the pages. To use it

- unzip to the [icefaces.dir]/samples directory of your ICEfaces 1.8 RC2 binary release (which should result in a nav directory being created)
- from your terminal/console, go to the newly create nav directory
- type something like (environment dependent of course):

Code:
ant clean tomcat6.0
 cp dist/nav.war /Apps/apache-tomcat-6.0.18/webapps/


- point your browser at localhost:8080/nav/
- use the components to navigate between the pages
 Filename nav.zip [Disk] Download
 Description Navigation sample
 Filesize 28 Kbytes
 Downloaded:  309 time(s)


Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
uweklosa

Joined: 09/Sep/2007 00:00:00
Messages: 26
Offline


We are using facelets.

I will come back to you with a testcase later.
chrishantha

Joined: 04/Mar/2008 00:00:00
Messages: 153
Offline


Hi Deryk,

Thank you very much for your reply.

I'm using Facelets and web browser is Firefox 3.0.7

I'll also create a test case and submit in next few days.

Isuru Perera
stefano.bortoli

Joined: 18/Sep/2007 00:00:00
Messages: 19
Offline


I don't know whether it's the same problem, but I have a session expired very fast after a forward but only accessing the application through domain name.

if you open the application like this: http://www.foaf-o-matic.org
the session expires after loading.

if I open the same application using the exact path: http://okkam.dit.unitn.it:8081/foaf-O-matic-2/

everything work fine. I am using icefaces 1.7.2SP1, facelet deployed on tomcat 5.5.

thanks for helping! :-D
stefano.bortoli

Joined: 18/Sep/2007 00:00:00
Messages: 19
Offline


ok, regarding my issue, the problem happen with firefox 3.0.7 and partially with explorer.

if I use opera, and chrome everything works fine. :-(

I hate the last update of firefox!!!

uweklosa

Joined: 09/Sep/2007 00:00:00
Messages: 26
Offline


We did a little more test now. The issues happens very often in FF 3.0.7 and never in IE7.

In FF the problem occurs often on pages that contain ice:panelSeries which show more than 2 rows.
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1332
Offline


Hi,

There's a JIRA for this issue now: ICE-4275.

We are able to reproduce this by loading a lot of tab simultaneously in IE7, but not via redirect navigation at all.

If someone has a simple example that demonstrates this consistently using redirect navigation please post it here or in the JIRA.

Thx.
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
uweklosa

Joined: 09/Sep/2007 00:00:00
Messages: 26
Offline


Hi Ken,

After reading the jira-issue I think it has nothing to do with a redirect in our application. As described this issue only occurs when we open pages with many components on them.

Thanks. You and your team a really doing a great job.
chrishantha

Joined: 04/Mar/2008 00:00:00
Messages: 153
Offline


Hi all,

I tried to create a test case but the issue is difficult to reproduce. As uweklosa mentioned, "User Session Expired" message is displayed randomly.

I hope that the fix for ICE-4275, will work.

I will check and let you all know the results tomorrow.. (Monday)

Thank you.

Isuru Perera
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1332
Offline


Hi,

It would be great if you can test the latest icefaces trunk to see if the changes to ICE-4275 resolve this issue.

Thx.
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
chrishantha

Joined: 04/Mar/2008 00:00:00
Messages: 153
Offline


Hi Ken,

I tested with revision 18684 and I still have the issue.

Revision 18684 contains the changes for ICE-4275

I'm not sure why this happens and I cannot reproduce the issue from my test case.

I used Firefox 3.0.8 for testing.

Following coding is from com.icesoft.faces.webapp.http.core.RequestVerifier.service(Request)

Code:
if (request.containsParameter("ice.session")) {
 	if (Arrays.asList(request.getParameterAsStrings("ice.session")).contains(sessionID)) {
 		server.service(request);
 	} else {
 		log.debug("Missmatched 'ice.session' value. Session has expired.");
 		request.respondWith(SessionExpiredResponse.Handler);
 	}
 } else {
 	log.info("Request missing 'ice.session' required parameter. Dropping connection...");
 	request.respondWith(EmptyResponse.Handler);
 }


The problem is that sometimes "ice.session" parameter is empty (i.e. empty string).

Therefore, following block is executed.

Code:
log.debug("Missmatched 'ice.session' value. Session has expired.");
 request.respondWith(SessionExpiredResponse.Handler);


Earlier I was working with revision 18507 and there was no issue.
(I used revision 18507 as it fixed the file upload issue with Firefox 3.0.7)

Isuru Perera
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1332
Offline


Hi,

Thanks for the rapid testing. I've re-opened the JIRA and added your last comments to the case.

Thx.,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
chrishantha

Joined: 04/Mar/2008 00:00:00
Messages: 153
Offline


Hi Ken,

Thank you very much.

Isuru Perera
 
Forum Index -> Development Build Feedback Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team