Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Session timeout error
Session timeout error [message #128778] Mon, 20 April 2009 10:38 Go to next message
Alexander Eliseyev is currently offline Alexander EliseyevFriend
Messages: 3
Registered: July 2009
Junior Member
Hi everyone!

We use RAP for the UI part of our project and I'm experiencing some
strange session-timeout behaviour. When accessing the RAP servlet url with
a trailing slash ("/myproject/"), the first ajax request from the initial
HTML page (*):

" w4t_survey=true&w4t_scriptEnabled=true&w4t_ajaxEnabl ed=true&startup=default&w4t_width=1280&w4t_heigh t=453
&9012615=603%2C13&30501214=785%2C20&12433070=546 %2C12&w1.bounds.width=1280&w1.bounds.height=453& uiRoot=w1 "

runs ok, resulting javascript response that renders the login page just
fine. Then the secong request is performed:

" w12.mode=maximized&20627169=53%2C20&w1.focusControl= w11&uiRoot=w1&requestCounter=3 "

which results the response, containing the initial HTML of the page again!
So the Request.js _handleCompleted() sees the response content starting
with the "<!DOCTYPE" and displays the session timeout message, providing a
link to the same "/myproject/" page.

That's weird, but it works just fine when accessing the URL w/o the slash
- "/myproject".

What could cause such a behavior?

Thanks!

Best regards,
Alexander Eliseyev
Re: Session timeout error [message #129102 is a reply to message #128778] Tue, 21 April 2009 10:51 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Alexander,

Apparently, RAP cannot deal with the trailing slash, you need to use the
correct URL which is http://host:port/myproject in your case - without a
trailing slash. Most web servers redirect silently, so the two URLs
might be perceived equivalent, but in fact there aren't.

However, I agree that RAP behaves strangely here, as the first request
succeeds, but then the seconds one fails - because of a falsely arranged
URL. Would you mind opening a bug report for this problem?

If you're using an Apache based setup, you could probably work around
this using some redirection magic there.

Best regards, Ralf


> Hi everyone!
>
> We use RAP for the UI part of our project and I'm experiencing some
> strange session-timeout behaviour. When accessing the RAP servlet url
> with a trailing slash ("/myproject/"), the first ajax request from the
> initial HTML page (*):
>
> " w4t_survey=true&w4t_scriptEnabled=true&w4t_ajaxEnabl ed=true&startup=default&w4t_width=1280&w4t_heigh t=453
>
> &9012615=603%2C13&30501214=785%2C20&12433070=546 %2C12&w1.bounds.width=1280&w1.bounds.height=453& uiRoot=w1 "
>
>
> runs ok, resulting javascript response that renders the login page just
> fine. Then the secong request is performed:
>
> " w12.mode=maximized&20627169=53%2C20&w1.focusControl= w11&uiRoot=w1&requestCounter=3 "
>
>
> which results the response, containing the initial HTML of the page
> again! So the Request.js _handleCompleted() sees the response content
> starting with the "<!DOCTYPE" and displays the session timeout message,
> providing a link to the same "/myproject/" page.
>
> That's weird, but it works just fine when accessing the URL w/o the
> slash - "/myproject".
>
> What could cause such a behavior?
>
> Thanks!
>
> Best regards,
> Alexander Eliseyev
>
Re: Session timeout error [message #129323 is a reply to message #129102] Wed, 22 April 2009 06:13 Go to previous message
Alexander Eliseyev is currently offline Alexander EliseyevFriend
Messages: 3
Registered: July 2009
Junior Member
Hi Ralf!

Thanks for the reply, I've created a bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=273184

Best regards,
Alexander
Previous Topic:External UIThread access
Next Topic:Anyone Ported the Nebula-PShelf-API to RAP
Goto Forum:
  


Current Time: Thu Apr 18 23:24:05 GMT 2024

Powered by FUDForum. Page generated in 0.03669 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top