From e1c54c4bfe593d2131f6adb7efa3027ce8662b81 Mon Sep 17 00:00:00 2001 From: Pavel Paroulek Date: Sat, 18 Nov 2017 22:14:27 +0100 Subject: add aai exception when missing FromAppId header adding an aai exception so that instead of NPE a 4009 exception is thrown in case of a missing FromAppId header Change-Id: Iac14eeedd05a8caf0fc676c5e218938aa94a6e27 Issue-ID: AAI-480 Signed-off-by: Pavel Paroulek --- aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'aai-resources/src/main/java') diff --git a/aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java b/aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java index fa74f7b..780510d 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java @@ -108,7 +108,6 @@ public abstract class BulkConsumer extends RESTAPI { String realTime = headers.getRequestHeaders().getFirst("Real-Time"); String outputMediaType = getMediaType(headers.getAcceptableMediaTypes()); Version version = Version.valueOf(versionParam); - DBConnectionType type = this.determineConnectionType(sourceOfTruth, realTime); Response response = null; @@ -121,7 +120,7 @@ public abstract class BulkConsumer extends RESTAPI { try { //TODO add auth check when this endpoint added to that auth properties files - + DBConnectionType type = this.determineConnectionType(sourceOfTruth, realTime); JsonArray transactions = getTransactions(content); -- cgit 1.2.3-korg