• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

querystring settings depend on Tomcat versions ?

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic