Repair app manager controller undeploy method 59/759/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Tue, 20 Aug 2019 18:03:38 +0000 (14:03 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Tue, 20 Aug 2019 18:03:38 +0000 (14:03 -0400)
Was using the wrong object and taking NPE

Change-Id: I447aaa60f5e28b02128d519d1ba10ed842f99363
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
docs/release-notes.rst
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/AppManagerController.java

index 65e5896..19c9101 100644 (file)
@@ -23,7 +23,7 @@ Version 1.2.1, ? Aug 2019
 -------------------------
 * Add EPSDK-FW user management and Portal security
 
-Version 1.2.0, 19 Aug 2019
+Version 1.2.0, 20 Aug 2019
 --------------------------
 * Split URL properties into prefix/suffix parts
 * Add jacoco plugin to back-end for code coverage
@@ -42,6 +42,7 @@ Version 1.2.0, 19 Aug 2019
 * Synch A1 method paths in front-end and back-end
 * Add xapp dynamic configuration feature
 * Disable x-frame-options response header
+* Repair app manager undeploy-app method
 
 Version 1.0.5, 5 July 2019
 --------------------------
index 3f2e8ac..2e1aaea 100644 (file)
@@ -200,7 +200,7 @@ public class AppManagerController {
        public void undeployXapp(@PathVariable("xAppName") String xAppName, HttpServletResponse response) {
                logger.debug("undeployXapp {}", xAppName);
                xappApi.undeployXapp(xAppName);
-               response.setStatus(healthApi.getApiClient().getStatusCode().value());
+               response.setStatus(xappApi.getApiClient().getStatusCode().value());
        }
 
 }