cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1151155 - in /cxf/branches/2.4.x-fixes: ./ rt/transports/http-jetty/src/test/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestinationTest.java rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Date Tue, 26 Jul 2011 16:20:54 GMT
Author: sergeyb
Date: Tue Jul 26 16:20:54 2011
New Revision: 1151155

URL: http://svn.apache.org/viewvc?rev=1151155&view=rev
Log:
Merged revisions 1151152 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1151152 | sergeyb | 2011-07-26 17:17:22 +0100 (Tue, 26 Jul 2011) | 1 line
  
  [CXF-3689] Applying a patch on behalf of Qiu Zhan Bo
........

Modified:
    cxf/branches/2.4.x-fixes/   (props changed)
    cxf/branches/2.4.x-fixes/rt/transports/http-jetty/src/test/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestinationTest.java
    cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
    svn:mergeinfo = /cxf/trunk:1151152

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.4.x-fixes/rt/transports/http-jetty/src/test/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestinationTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/transports/http-jetty/src/test/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestinationTest.java?rev=1151155&r1=1151154&r2=1151155&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/rt/transports/http-jetty/src/test/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestinationTest.java
(original)
+++ cxf/branches/2.4.x-fixes/rt/transports/http-jetty/src/test/java/org/apache/cxf/transport/http_jetty/JettyHTTPDestinationTest.java
Tue Jul 26 16:20:54 2011
@@ -695,6 +695,7 @@ public class JettyHTTPDestinationTest ex
                 //EasyMock.expect(request.getMethod()).andReturn(method);            
                 EasyMock.expect(request.getInputStream()).andReturn(is);
                 EasyMock.expect(request.getContextPath()).andReturn("/bar");
+                EasyMock.expect(request.getServletPath()).andReturn("");
                 EasyMock.expect(request.getPathInfo()).andReturn("/foo");
                 EasyMock.expect(request.getRequestURI()).andReturn("/foo");
                 EasyMock.expect(request.getRequestURL())

Modified: cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java?rev=1151155&r1=1151154&r2=1151155&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
(original)
+++ cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Tue Jul 26 16:20:54 2011
@@ -260,7 +260,12 @@ public abstract class AbstractHTTPDestin
         if (contextPath == null) {
             contextPath = "";
         }
-        inMessage.put(Message.PATH_INFO, contextPath + req.getPathInfo());
+        String servletPath = req.getServletPath();
+        if (servletPath == null) {
+            servletPath = "";
+        }
+        String contextServletPath = contextPath + servletPath;
+        inMessage.put(Message.PATH_INFO, contextServletPath + req.getPathInfo());
         String contentType = req.getContentType();
         inMessage.put(Message.CONTENT_TYPE, contentType);
         setEncoding(inMessage, req, contentType);
@@ -268,7 +273,7 @@ public abstract class AbstractHTTPDestin
         inMessage.put(Message.QUERY_STRING, req.getQueryString());
 
         inMessage.put(Message.ACCEPT_CONTENT_TYPE, req.getHeader("Accept"));
-        String basePath = getBasePath(contextPath);
+        String basePath = getBasePath(contextServletPath);
         if (!StringUtils.isEmpty(basePath)) {
             inMessage.put(Message.BASE_PATH, basePath);
         }



Mime
View raw message