diff options
author | Pavel Paroulek <pavel.paroulek@orange.com> | 2017-11-18 22:14:27 +0100 |
---|---|---|
committer | Pavel Paroulek <pavel.paroulek@orange.com> | 2017-11-18 22:14:27 +0100 |
commit | e1c54c4bfe593d2131f6adb7efa3027ce8662b81 (patch) | |
tree | c66d4812b414ea5c35a3d5a0324ee563ba335d63 /aai-resources/src | |
parent | bdd510d7bc814739348668b544a61e228acfa246 (diff) |
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 <pavel.paroulek@orange.com>
Diffstat (limited to 'aai-resources/src')
-rw-r--r-- | aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java | 3 |
1 files changed, 1 insertions, 2 deletions
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); |