Fix race condition in apex-editor model upload

Fixed a race condition in /Model/Upload endpoint caused by userId
 query param overwriting a global parameter. New behavior is for
 userId to override global param for that request only.
Updated JavaDocs to reflect behavior.
Added JUnit test to verify userId overriding.
Fixed issue where upload success message was not included in response.

Issue-ID: POLICY-3929
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ic1d78083778eef2df3675b3b4fbc1e41420da46f
6 files changed
tree: d5ffcec5df5c9a6ce11bcb6ebf756bad925de8fc
  1. gui-clamp/
  2. gui-common/
  3. gui-editors/
  4. packages/
  5. releases/
  6. .gitignore
  7. .gitreview
  8. INFO.yaml
  9. LICENSE.txt
  10. pom.xml
  11. README.md
  12. version.properties
README.md

Summary

Copyright 2017-2018 AT&T Intellectual Property. All rights reserved. Copyright (C) 2021 Nordix Foundation. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

This source repository contains the ONAP Policy GUI code.

To build it using Maven 3, run: mvn clean install -P docker

Docker image

Maven produces a single docker image containing the policy GUIs. These are exposed on the same port (2443) using different URLs:

Building

You can use the following command to build the policy-gui docker image:

mvn clean install -P docker

Deployment

Currently, the policy-gui docker image can be deployed without configuration. For the GUI container to start correctly, the CLAMP backend policy-clamp-backend should be started first.

For local testing, if the CLAMP backend is running on localhost port 8443, the policy-gui docker container can be started with:

docker run -p 2443:2443 --add-host policy-clamp-backend:host-gateway onap/policy-gui

Client Credentials

A certificate must be added in the browser and is required to log in properly:

org.onap.clamp.p12 (from clamp master) (Password: "China in the Spring")

See onap/clamp repo README for details.