/[Apache-SVN]
ViewVC logotype

Revision 1754281


Jump to revision: Previous Next
Author: markt
Date: Wed Jul 27 15:47:44 2016 UTC (7 years, 9 months ago)
Changed paths: 11
Log Message:
Decode the path provided to the request dispatcher by default. The reasoning is:
- the servlet spec is clear (see 9.1.1) that path can include a query string;
- the query string is delimited by '?';
- '?' is a valid character in the path (if it is encoded);
- users may want to use '?'in the path;
- therefore users need to be able to provide an encoded path;
- therefore the RequestDispatcher needs to decode the path.

This change should be transparent unless an application is passing an unencoded % to the request dispatcher which should be fairly rare.

The behaviour is configurable via a Context attribute so the previous behaviour can easily be restored.

Changed paths

Path Details
Directorytomcat/trunk/java/org/apache/catalina/Context.java modified , text changed
Directorytomcat/trunk/java/org/apache/catalina/connector/Request.java modified , text changed
Directorytomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java modified , text changed
Directorytomcat/trunk/java/org/apache/catalina/core/LocalStrings.properties modified , text changed
Directorytomcat/trunk/java/org/apache/catalina/core/StandardContext.java modified , text changed
Directorytomcat/trunk/java/org/apache/catalina/startup/FailedContext.java modified , text changed
Directorytomcat/trunk/test/org/apache/catalina/core/TestApplicationContextGetRequestDispatcher.java added
Directorytomcat/trunk/test/org/apache/catalina/core/TestAsyncContextImpl.java modified , text changed
Directorytomcat/trunk/test/org/apache/tomcat/unittest/TesterContext.java modified , text changed
Directorytomcat/trunk/webapps/docs/changelog.xml modified , text changed
Directorytomcat/trunk/webapps/docs/config/context.xml modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26