Author: christian.bauer(a)jboss.com
Date: 2009-03-16 17:26:30 -0400 (Mon, 16 Mar 2009)
New Revision: 10173
Modified:
trunk/src/resteasy/org/jboss/seam/resteasy/ResteasyResourceAdapter.java
Log:
JBSEAM-3992, encoding of absolute REST request path
Modified: trunk/src/resteasy/org/jboss/seam/resteasy/ResteasyResourceAdapter.java
===================================================================
--- trunk/src/resteasy/org/jboss/seam/resteasy/ResteasyResourceAdapter.java 2009-03-16
13:36:39 UTC (rev 10172)
+++ trunk/src/resteasy/org/jboss/seam/resteasy/ResteasyResourceAdapter.java 2009-03-16
21:26:30 UTC (rev 10173)
@@ -76,7 +76,6 @@
{
HttpHeaders headers = ServletUtil.extractHttpHeaders(request);
- String path = PathHelper.getEncodedPathInfo(request.getRequestURI(),
request.getContextPath());
URI absolutePath;
try
{
@@ -95,6 +94,8 @@
throw new RuntimeException(e);
}
+ String path =
PathHelper.getEncodedPathInfo(absolutePath.getRawPath(), request.getContextPath());
+
Application appConfig =
(Application)Component.getInstance(Application.class);
if (appConfig.isStripSeamResourcePath()) {
log.debug("removing SeamResourceServlet url-pattern and
dispatcher prefix from request path");
Show replies by date