Graeme Pyle wrote:
> 
> Hi folks,
> 
> I found a strange problem with Apache that is exposed by the way Turbine
> encodes URL parameters into the path of the request.
> 
> It turns out that Apache doesn't like the '/' character encoded as '%2F'
> inside a URL path. If you have an action or screen in Turbine which is in a
> subdirectory (eg. admin/index.vm), the '/' is encoded as '%2F' and Apache
> doesn't like that.
> 

I think Apache is perfectly happy with either / or %2F, it does not make
a distinction between the two.  I ran into this when building the
template system and after reading the url encoding spec several times I
was finally convinced that this is the correct interpretation.  I chose
to use a comma (,) as the path separator.


> 
> 1) Hack %2F checking out of Apache (The Apache maintainers know about the
> problem, in fact, allowing %2F is a security risk to them. Doesn't look like
> they intend fixing it)

How is this a risk?  I believe it is the proper interpretation.

> 
> 2) Change the seperator used by Turbine

It's always been a comma.

> 
> Comments/suggestions?
> 
> g
> 
> -----Original Message-----
> From: James Coltman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 20, 2000 4:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: TemplateSecureSessionValidator
> 
> martin wrote:
> 
> >there was a bug in TemplateInfo.java ... it is fixed in turbine-cvs ...
> >get the latest version or wait for the next tdk ..
> 
> in response to:
> >> Which version of Turbine are you using?  With TDK1.1a9 and
> >> TDK1.1b1, I get the same results.  Is there something else
> >> I'm missing in TR.props?
> >>
> >> I even created another sessionvalidator and copied the code
> >> from TemplateSecureSessionValidator and put in debugging
> >> prints.  Interestingly enough,
> >>
> >> data.getTemplateInfo().setScreenTemplate(
> >> TurbineResources.getString("template.login") );
> >> System.out.println(data.getTemplateInfo().getScreenTemplate());
> >>
> >> The second line prints the page I was maliciously trying to
> >> get to, rather than the data from template.login.
> >>
> >> However, the setMessage() call is working - the page I
> >> maliciously tried to go to shows me the login.message.  -
> >> The template is just not getting set properly.
> 
> I have tried use the the latest code from the one of the recent nightly
> builds and have found that I am getting a horrible exception response. Could
> you direct me to a usable nightly build that I can intergrate with the
> TDK1.1b1, or do I need to use one of the TDK's from CVS.
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to