Call method to insert slashes in CAAS-Ingress URL 89/1189/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Mon, 21 Oct 2019 18:18:40 +0000 (14:18 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Mon, 21 Oct 2019 18:37:52 +0000 (14:37 -0400)
Change-Id: I125aa3e3184a095d863fba08798b2d32dd47fc07
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
docs/release-notes.rst
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/k8sapi/SimpleKubernetesClient.java

index 3f9f86e..3eaf7dd 100644 (file)
@@ -32,6 +32,7 @@ Version 1.2.4, 21 Oct 2019
 * Align page titles to top left,decrease font size
 * Update EPSDK-FW to version 2.6
 * Make constructor robust to missing caasingress.insecure property
+* Repair bug that omitted slashes in CAAS-Ingress URL builder
 
 Version 1.2.3, 4 Oct 2019
 -------------------------
index e81549d..bcfae62 100644 (file)
@@ -45,8 +45,9 @@ public class SimpleKubernetesClient {
 
        public String listPods(String namespace) {
                logger.debug("listPods for namespace {}", namespace);
-               String podsUrl = new DefaultUriBuilderFactory(k8sUrl.trim()).builder().path("v1").path("namespaces")
-                               .path(namespace.trim()).path("pods").build().normalize().toString();
+               String podsUrl = new DefaultUriBuilderFactory(k8sUrl.trim()).builder().pathSegment("v1")
+                               .pathSegment("namespaces").pathSegment(namespace.trim()).pathSegment("pods").build().normalize()
+                               .toString();
                RestTemplate rt = new RestTemplate();
                ResponseEntity<String> podsResponse = rt.getForEntity(podsUrl, String.class);
                return podsResponse.getBody();