summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
authorStone, Avi (as206k) <as206k@att.com>2018-06-03 13:12:12 +0300
committerAvi Stone <as206k@att.com>2018-06-03 11:56:49 +0000
commit548c5a220333c7cd666b861e737bff0b45461f18 (patch)
tree13c60b67291bd8bada498ad73c02a9e35afb5c9e /src/main/java/org/onap
parent193095b01daf094c78f7fafacdf1c1cc31f290fe (diff)
Update FE project
Update FE to latest version so that fe can run on docker Change-Id: I9c5dee756b567dbe64fac6d3d6fd89362813bdcc Issue-ID: SDC-1359 Signed-off-by: Stone, Avi (as206k) <as206k@att.com>
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r--src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java b/src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java
index 84b6918..4900f27 100644
--- a/src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java
+++ b/src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java
@@ -43,14 +43,16 @@ public class DcaeProxy extends ProxyServlet {
log.error("Unexpected FE request logging error :", e);
}
String uri = request.getRequestURI();
- uri = uri.replace("/dcaeProxy", "");
+ uri = uri.replaceFirst("/dcaed", "/dcae"); // replacing the new FE context (/dcaed) with BE context (/dcae)
+ uri = uri.replace("/dcaeProxy", ""); // removing the proxy from the request
String query = request.getQueryString();
StringBuilder url = new StringBuilder();
url.append(beHostUrl).append(uri);
- if(null != query)
- url.append("?").append(query);
+ if(null != query){
+ url.append("?").append(query); // restoring all query params if tsuch exists
+ }
String urlString = url.toString();
- log.info("Proxy outgoing request={}", urlString);
+ log.info("New FE Proxy outgoing request={}", urlString);
return urlString;
}