diff --git a/packaging/war/src/main/webapp/index.jsp b/packaging/war/src/main/webapp/index.jsp
index 97357660e6..3628992c3b 100644
--- a/packaging/war/src/main/webapp/index.jsp
+++ b/packaging/war/src/main/webapp/index.jsp
@@ -34,6 +34,7 @@
<%@ page import="org.alfresco.service.cmr.module.ModuleDetails" %>
<%@ page import="org.alfresco.service.cmr.module.ModuleInstallState" %>
<%@ page import="java.util.Calendar" %>
+<%@ page import="org.owasp.encoder.Encode" %>
<%
@@ -88,7 +89,7 @@ ModuleDetails shareServicesModule = moduleService.getModule("alfresco-share-serv
Alfresco WebScripts Home (admin only - INTERNAL)
- Alfresco API Explorer
+ Alfresco API Explorer
<%
if (descriptorService.getLicenseDescriptor() == null && transactionService.isReadOnly())
{
diff --git a/pom.xml b/pom.xml
index 18d0c26528..c13b2e92e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -398,7 +398,7 @@
commons-fileupload
commons-fileupload
- 1.5
+ 1.6.0
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index 349c1da7e6..a1bc5acd2b 100644
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -6,31 +6,22 @@ pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
-
-# Build the current project if needed
-if [[ -n ${REQUIRES_INSTALLED_ARTIFACTS} ]] || [[ -n ${REQUIRES_LOCAL_IMAGES} ]] || [[ -n ${BUILD_PROFILES} ]]; then
-
- if [[ -n ${BUILD_PROFILES} ]]; then
- PROFILES="${BUILD_PROFILES}"
- else
- if [[ "${REQUIRES_LOCAL_IMAGES}" == "true" ]]; then
- PROFILES="-Pbuild-docker-images -Pags"
- else
- PROFILES="-Pags"
- fi
- fi
-
- if [[ "${REQUIRES_INSTALLED_ARTIFACTS}" == "true" ]]; then
- PHASE="install"
- else
- PHASE="package"
- fi
-
- mvn -B -V $PHASE -DskipTests -Dmaven.javadoc.skip=true $PROFILES $BUILD_OPTIONS
+if [[ -n ${BUILD_PROFILES} ]]; then
+ PROFILES="${BUILD_PROFILES}"
+elif [[ "${REQUIRES_LOCAL_IMAGES}" == "true" ]]; then
+ PROFILES="-Pbuild-docker-images -Pags"
+else
+ PROFILES="-Pags"
fi
+if [[ "${REQUIRES_INSTALLED_ARTIFACTS}" == "true" ]]; then
+ PHASE="install"
+else
+ PHASE="package"
+fi
+
+mvn -B -V $PHASE -DskipTests -Dmaven.javadoc.skip=true $PROFILES $BUILD_OPTIONS
popd
set +vex
echo "=========================== Finishing Build Script =========================="
-
diff --git a/scripts/ci/remove-sast-exclusions.sh b/scripts/ci/remove-sast-exclusions.sh
new file mode 100644
index 0000000000..8826cb2aa1
--- /dev/null
+++ b/scripts/ci/remove-sast-exclusions.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+echo "=========================== Excluding Files from Veracode SAST ==========================="
+set -ex
+pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
+
+# Copy war file to temporary directory
+cp -f "$1" "$2"
+
+# Remove files to be excluded from Veracode SAST
+exclusions="./scripts/ci/SAST-exclusion-list.txt"
+if [ -e $exclusions ]
+then
+ while read -r line
+ do
+ echo "Removing WEB-INF/lib/$line"
+ zip -d "$2" "WEB-INF/lib/$line" || true
+ done < "$exclusions"
+else
+ echo "No files to be excluded from SAST"
+fi
+
+popd
+set +ex
+echo "=========================== Finishing Excluding Files from Veracode SAST =========================="