tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: TC 3.3: getRequestURI()
Date Wed, 26 Sep 2001 14:49:11 GMT
Larry Isaacs wrote:
> 
> > -----Original Message-----
> > From: Bojan Smojver [mailto:bojan@binarix.com]
> > Sent: Wednesday, September 26, 2001 7:41 AM
> > To: Tomcat Dev List
> > Subject: TC 3.3: getRequestURI()
> >
> >
> > The latest TC 3.3 CVS with its mod_jk, gives an encoded URI, together
> > with the session ID on HttpServletRequest.getRequestURI().
> >
> > Example:
> >
> > /login/login.vm%3bjsessionid=q95pbsuof1
> >
> > Previously, jsessionid wasn't there. The change was
> > intentional, right?
> 
> Probably not.  It's a side of effect of the last change which was
> to use "s->req_uri = ap_escape_uri(r->pool, r->uri);". This looks
> like a good example of a re-encoded URI not being equal to the
> original.

The 2.3 spec's says:
+++
getRequestURI() public java.lang.String getRequestURI() Returns the part of this
request's URL from the protocol name up to the query string in the first line of
the HTTP request. The web container does not decode this String.
+++
What about reversing the change?

> 
> Thanks for noticing this.
> 
> Larry

Mime
View raw message