Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
Wrong URL encoding in subsequent requests lead to errors
Forum Index -> General
Author Message
ikrahne


Joined: 03/06/2008 08:36:25
Messages: 20
Offline

Hi,

this was originally a datatable issue, but I think it's more general.

Scenario :
Client: IE6
Server: Tomcat 5.5.23 or WebSphere 6.10.13
Server : Cookies are disabled, jsessionid is used
Acegi Security Filter installed as Servlet-Filter

After inital Server-Startup everything is ok. The initial requests are all good, the subsequent http-get requests are encoded properly with the correct jsessionid (GoodRequest.png). All "jsessionid"'s are the same.

Then after some time (maybe after the first server-side session-timeout) the requests have new generated jsessionid's as seen in "BadRequest.png".

The initial request has a jsessionid of "0000hDbhwXdCeE2aiOy-b3XOKtf:-1" which is correkt. Then the ECruiser-Scripts submit some "ec_resp" requests like this one:



The submitted jsessionid of "00006KdJaZmSuTnf-t9p-T3EMwa:-1" is a new id generated by the server.

Obviously some request are being made, without supplying the correct jsessionid. In this scenario the request is being redirected to the "login-page" and doesn't hit the application. Now it's clear why the script-error shows a


as in SyntayError.png

Any ideas how to fix this ?!
[Thumb - BadRequest.png]
 Filename BadRequest.png [Disk] Download
 Description
 Filesize 37 Kbytes
 Downloaded:  400 time(s)

[Thumb - GoodRequest.png]
 Filename GoodRequest.png [Disk] Download
 Description
 Filesize 30 Kbytes
 Downloaded:  371 time(s)

[Thumb - SyntaxError.png]
 Filename SyntaxError.png [Disk] Download
 Description
 Filesize 9 Kbytes
 Downloaded:  429 time(s)

ikrahne


Joined: 03/06/2008 08:36:25
Messages: 20
Offline

Hi there,

just for completeness. The workaround is to enable cookies. In this configuration the browser send's in any case the correkt jsessionid.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2012 Simplica Corporation. All rights reserved.