knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kris...@apache.org
Subject knox git commit: KNOX-1616 - Fix portmapping with Jetty 9.4
Date Tue, 20 Nov 2018 15:39:00 GMT
Repository: knox
Updated Branches:
  refs/heads/master 11a7fe7b0 -> 5881ed8f6


KNOX-1616 - Fix portmapping with Jetty 9.4

Signed-off-by: Kevin Risden <krisden@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/5881ed8f
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/5881ed8f
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/5881ed8f

Branch: refs/heads/master
Commit: 5881ed8f6ea08612ea8fc871b5d12b1628d186c8
Parents: 11a7fe7
Author: Kevin Risden <krisden@apache.org>
Authored: Mon Nov 19 19:08:22 2018 -0500
Committer: Kevin Risden <krisden@apache.org>
Committed: Mon Nov 19 19:08:25 2018 -0500

----------------------------------------------------------------------
 .../java/org/apache/knox/gateway/filter/RequestUpdateHandler.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/5881ed8f/gateway-server/src/main/java/org/apache/knox/gateway/filter/RequestUpdateHandler.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/knox/gateway/filter/RequestUpdateHandler.java
b/gateway-server/src/main/java/org/apache/knox/gateway/filter/RequestUpdateHandler.java
index 342c988..01654ce 100644
--- a/gateway-server/src/main/java/org/apache/knox/gateway/filter/RequestUpdateHandler.java
+++ b/gateway-server/src/main/java/org/apache/knox/gateway/filter/RequestUpdateHandler.java
@@ -87,7 +87,7 @@ public class RequestUpdateHandler extends ScopedHandler {
     // if the request already has the /{gatewaypath}/{topology} part then skip
     if (!StringUtils.startsWithIgnoreCase(target, redirectContext)) {
       baseRequest.setPathInfo(redirectContext + baseRequest.getPathInfo());
-      baseRequest.setHttpURI(new HttpURI(redirectContext + baseRequest.getHttpURI()));
+      baseRequest.setHttpURI(new HttpURI(redirectContext + baseRequest.getRequestURI()));
 
       LOG.topologyPortMappingUpdateRequest(target, newTarget);
       nextHandle(newTarget, baseRequest, newRequest, response);


Mime
View raw message