tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Surendra Kumar" <suvis...@cisco.com>
Subject Re: Tomcat 4.1.29 - Special chars in a file name
Date Tue, 31 Aug 2004 14:43:25 GMT
Hi Greg
        I tried with test%2B.gif also.  If the file is located in Apache, it
docodes properly.
        But if the file is in Tomcat, it throws resource not available
error.

-Surendra

----- Original Message -----
From: "Greg Ward" <gward-tomcat@python.net>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, August 31, 2004 8:02 PM
Subject: Re: Tomcat 4.1.29 - Special chars in a file name


> On 31 August 2004, Surendra Kumar said:
> > Hi
> >    I am using Tomcat 4.1.29 + Apache 1.3.31.  In one of my webapp i have
a file named "test+.gif"
>
> Probably a URL encoding problem -- if a web page includes
>
>   <a href="test+.gif">
>
> then the browser will ask for "test .gif", because "test+.gif" is one of
> the ways to encode "test .gif" so it's a legal URL.  (The other is
> "test%20.gif".)
>
> Whatever code is generating
>
>   <a href="test+.gif">
>
> is wrong -- it should be
>
>   <a href="test%2B.gif">
>
> which the browser will decode to "test+.gif".
>
>         Greg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message