|
Re: Session timeout error [message #129102 is a reply to message #128778] |
Tue, 21 April 2009 10:51 |
|
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
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02856 seconds