XSS Vulnerability fix in MicroserviceController 53/88853/3
authorDominik Mizyn <d.mizyn@samsung.com>
Thu, 30 May 2019 09:52:03 +0000 (11:52 +0200)
committerDominik Mizyn <d.mizyn@samsung.com>
Thu, 30 May 2019 11:42:05 +0000 (13:42 +0200)
commit46e67f9bd05747acc46525822dca7fe2d6260e31
tree7ea6b3cfb18e9de336186e899fd869fc1f929d30
parent1f4d93651fdc71e0b661728a7c7efc9b4f524b5a
XSS Vulnerability fix in MicroserviceController

@SafeHtml annotation is used to fix this problem.

This commit also fix:
* redundant local variable issue
* sonar issue: Replace the type specification in this constructor call with
the diamond operator ("<>").
* performance issue - String concatenation argument as argument
to 'StringBuilder.append()' call
* redundant cast
* redundant 'throws Exception'. 'Exception' is never thrown
* access static member via instance reference
* unused declarations

Issue-ID: PORTAL-602
Change-Id: Id92fe2d9cfe239474403f611f3d5d0170acf63cc
Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/MicroserviceController.java
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/MicroserviceData.java
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/MicroserviceParameter.java
ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/controller/MicroserviceControllerTest.java