Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2014-07-19 08:55:02 +0000
committerGreg Wilkins2014-07-19 08:55:02 +0000
commitc72649e150608d28a9202c22905ebddc9c047ff4 (patch)
tree8b73c52d76e75d95b476c60b5b376e4ef7953096 /jetty-servlet/src
parentb38a978eacd5354b0d0ccc60604244d2d3df27ea (diff)
downloadorg.eclipse.jetty.project-c72649e150608d28a9202c22905ebddc9c047ff4.tar.gz
org.eclipse.jetty.project-c72649e150608d28a9202c22905ebddc9c047ff4.tar.xz
org.eclipse.jetty.project-c72649e150608d28a9202c22905ebddc9c047ff4.zip
435653 encode async dispatched requestURI
Diffstat (limited to 'jetty-servlet/src')
-rw-r--r--jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletTest.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletTest.java b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletTest.java
index 288cf32634..5a50e834b2 100644
--- a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletTest.java
+++ b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncServletTest.java
@@ -51,6 +51,7 @@ import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.handler.RequestLogHandler;
import org.eclipse.jetty.toolchain.test.AdvancedRunner;
import org.eclipse.jetty.util.IO;
+import org.eclipse.jetty.util.URIUtil;
import org.eclipse.jetty.util.component.AbstractLifeCycle;
import org.hamcrest.Matchers;
import org.junit.After;
@@ -706,7 +707,13 @@ public class AsyncServletTest
{
((HttpServletResponse)async.getResponse()).addHeader("history","resume");
if (path!=null)
- async.dispatch(path);
+ {
+ int q=path.indexOf('?');
+ String uriInContext=(q>=0)
+ ?URIUtil.encodePath(path.substring(0,q))+path.substring(q)
+ :URIUtil.encodePath(path);
+ async.dispatch(uriInContext);
+ }
else
async.dispatch();
}

Back to the top