Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

querystring settings depend on Tomcat versions ?

 
Grace Green
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Values in a URL must be properly url-encoded.
 
Grace Green
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your first post does not show that the URLs are properly encoded.
 
Grace Green
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Green
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic