RE: URL encoding problem IIS6 / JK1.2.25 / Tomcat 5.5.20

2008-06-25 Thread Jesse Klaasse
André Warnier wrote:

It would appear (from the logs), that there is some double-encoding of the URI 
going on.
[snip]
But, if somewhere along the line, a piece of code was receiving the encoded 
URI http://.../test%5Bbrackets%5D.jsp;, and decided to re-encode it again 
using the % hex hex method, then you would get this URI : 
http://.../test%255Bbrackets%255D.jsp; (where %25 is the encoded version of 
%).
Then the next step would decode this URI back into 
http://.../test%5Bbrackets%5D.jsp;, and that is what the server would try to 
access, what would be logged, and also what you seem to experience.

So, which is the culprit which re-encodes something it should not ?
And is there not some parameter somewhere which forces it to do so ?

Thanks for your excellent answer. I have fixed the problem now. There is a 
setting for the isapi_redirecor called uri_select. This parameter controls 
the URI's which are passed to Tomcat from IIS. It defaults to value proxy, 
which leads to some re-encoding. I have changed the parameter's value to 
unparsed now, which has solved the problem.

For those who want to know more, the parameter is explained here: 
http://tomcat.apache.org/connectors-doc/reference/iis.html

Jesse.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL encoding problem IIS6 / JK1.2.25 / Tomcat 5.5.20

2008-06-25 Thread André Warnier


Jesse Klaasse wrote:
[...]

Good.
Now, I should add that using [ and ] in URL's is not really something I 
would recommend, if only for legibility reasons.  It will always make 
people wonder if what they're seeing in the logfile is normal, or if 
it's some programming syntax which escaped there.
And I would bet that naming your servlet that way is also going to bring 
you trouble if you ever have to reference it in a Javascript line for 
instance.


André


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL encoding problem IIS6 / JK1.2.25 / Tomcat 5.5.20

2008-06-25 Thread André Warnier


Jesse Klaasse wrote:
[...]

Good.
Now, I should add that using [ and ] in URL's is not really something I 
would recommend, if only for legibility reasons.  It will always make 
people wonder if what they're seeing in the logfile is normal, or if 
it's some programming syntax which escaped there.
And I would bet that naming your servlet that way is also going to bring 
you trouble if you ever have to reference it in a Javascript line for 
instance.


André


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL encoding problem IIS6 / JK1.2.25 / Tomcat 5.5.20

2008-06-25 Thread Jesse Klaasse
André Warnier wrote:
[...]
Now, I should add that using [ and ] in URL's is not really something I would 
recommend, if only for legibility reasons.  It will always make people wonder 
if what they're seeing in the logfile is normal, or if it's some programming 
syntax which escaped there.
And I would bet that naming your servlet that way is also going to bring you 
trouble if you ever have to reference it in a Javascript line for instance.

I completely agree with you when you're saying [ and ] are not recommended in 
URL's. However, I don't really have a say in that, something to do with 
politics and legacy stuff.. Thanks again for your help!

Jesse.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]