diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-09-24 10:45:09 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-09-24 10:45:09 +0530 |
commit | 5fd859e55642611bc776dce1e3c066930420e97b (patch) | |
tree | 0c309c84baa5c1cc15a0a825ea924fcf5d31edb2 /vnfmarket-be/vnf-sdk-marketplace/src/main | |
parent | e45d082c80fbe95646a8c249aa03a66a3e77c938 (diff) |
VTP: Set to 500 on VTP-TC failure during upload
Issue-ID: VNFSDK-305
Change-Id: I443fdb7ce61584d7a561c000b24ca9c3faad29ec
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/main')
-rw-r--r-- | vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java index e2cc0c0d..a1730632 100644 --- a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java +++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java @@ -301,7 +301,7 @@ public class PackageWrapper { } } catch (Exception e) { LOG.error("CSAR validation panicked", e); - return Response.status(Status.EXPECTATION_FAILED).entity( + return Response.serverError().entity( new CommonErrorResponse("Exception occurred while validating csar package:" + e.getMessage())) .build(); } |