aspose file tools*
The moose likes Tomcat and the fly likes querystring settings depend on Tomcat versions ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "querystring settings depend on Tomcat versions ?" Watch "querystring settings depend on Tomcat versions ?" New topic
Author

querystring settings depend on Tomcat versions ?

Grace Russo
Ranch Hand

Joined: Nov 08, 2010
Posts: 64

I have an old app in which I had to append to the query string something like
&filter=and increment in ('E')

WHen I run the app locally with Tomcat 6.0.32, then everything looks fine, but on another server where I have tomcat 6.0.26
the same section of the query string looks like
&filter=and increment in #'E'#

Anyone's take ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

Values in a URL must be properly url-encoded.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Grace Russo
Ranch Hand

Joined: Nov 08, 2010
Posts: 64
Bear Bibeault wrote:Values in a URL must be properly url-encoded.


They are indeed ...
COuld some differences in settings between my local Tomcat and the one on the server make the difference ?
It all works fine on my machine and it used to work just fine on the other server until maybe a couple of weeks ago.
What settings in Tomcat woul be respondible for the interpretation of the parameters in a given encoding ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

Your first post does not show that the URLs are properly encoded.
Grace Russo
Ranch Hand

Joined: Nov 08, 2010
Posts: 64
Bear Bibeault wrote:Your first post does not show that the URLs are properly encoded.


THe url that shows in my machine contains:
&filter=increment+in+%28%27E%27%29%29

The url on the other server (same code) contains
&filter=increment in#'E'#

WHat could the difference between my local tomcat and the one on the other server be ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

You haven't provided enough context to venture a guess. How are these URLs being constructed? Who is doing the encoding? Where are they appearing?
Grace Russo
Ranch Hand

Joined: Nov 08, 2010
Posts: 64
Bear Bibeault wrote:You haven't provided enough context to venture a guess. How are these URLs being constructed? Who is doing the encoding? Where are they appearing?


Got it, the IE XSS filter enabled on the server but not on my machine was responsible.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: querystring settings depend on Tomcat versions ?