diff options
author | Ofir Sonsino <os0695@intl.att.com> | 2018-02-27 15:34:04 +0200 |
---|---|---|
committer | Ofir Sonsino <os0695@intl.att.com> | 2018-02-27 15:34:04 +0200 |
commit | 5a233ba6b2d258ed009e3515513679102e0b0eaa (patch) | |
tree | 4d354da432e98aa4b3b73b075f9cb8a259b7744f /vid-app-common/src/main/java/org | |
parent | efedea1c5d80532f5b1180d57c8dafce5dcb302a (diff) |
Verifying owning entity works E2E
Change-Id: I8669b5e28c6bea1bcacbb5fcc7101f2d7541909c
Issue-ID: VID-176
Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/main/java/org')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/asdc/rest/RestfulAsdcClient.java | 2 | ||||
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/controllers/VidController.java | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/asdc/rest/RestfulAsdcClient.java b/vid-app-common/src/main/java/org/onap/vid/asdc/rest/RestfulAsdcClient.java index 1fe9df18..1bdf9534 100644 --- a/vid-app-common/src/main/java/org/onap/vid/asdc/rest/RestfulAsdcClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/asdc/rest/RestfulAsdcClient.java @@ -22,6 +22,7 @@ package org.onap.vid.asdc.rest; import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate; +import org.onap.portalsdk.core.util.SystemProperties; import org.onap.vid.asdc.AsdcCatalogException; import org.onap.vid.asdc.AsdcClient; import org.onap.vid.asdc.beans.Artifact; @@ -160,6 +161,7 @@ public class RestfulAsdcClient implements AsdcClient { commonHeaders = new MultivaluedHashMap<String, Object>(); commonHeaders.put("Authorization", Collections.singletonList((Object) (auth))); + commonHeaders.put("X-ECOMP-InstanceID", Collections.singletonList((Object) (SystemProperties.getProperty(SystemProperties.APP_DISPLAY_NAME)))); } private Path createTmpFile(InputStream csarInputStream) throws AsdcCatalogException { diff --git a/vid-app-common/src/main/java/org/onap/vid/controllers/VidController.java b/vid-app-common/src/main/java/org/onap/vid/controllers/VidController.java index 84ba587b..da27cd99 100644 --- a/vid-app-common/src/main/java/org/onap/vid/controllers/VidController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controllers/VidController.java @@ -107,6 +107,7 @@ public class VidController extends RestrictedBaseController { secureServices.setServices(aaiService.getServicesByDistributionStatus()); //Disable roles until AAF integration finishes //secureServices.setReadOnly(roleProvider.userPermissionIsReadOnly(roles)); + secureServices.setReadOnly(false); return secureServices; } catch (Exception t) { |