diff --git a/.mvn/maven-version-rules.xml b/.mvn/maven-version-rules.xml index 10ef29728a..21884ee8b7 100644 --- a/.mvn/maven-version-rules.xml +++ b/.mvn/maven-version-rules.xml @@ -1,7 +1,5 @@ - + (?i).*Alpha(?:-?\d+)? @@ -32,5 +30,39 @@ (?i).*jre.* + + + + 3\.22\.0 + + + + + + + 3\..* + + + + + 2022\..* + + + + + 3\..* + + + + + 6\..* + + + + + 6\..* + + + \ No newline at end of file diff --git a/.mvn/maven.config b/.mvn/maven.config index 0727a838ce..30361c456d 100644 --- a/.mvn/maven.config +++ b/.mvn/maven.config @@ -1,4 +1,4 @@ --Drevision=3.1.0-SNAPSHOT +-Drevision=3.2.0-SNAPSHOT -Dlicense.projectName=Corona-Warn-App -Dlicense.inceptionYear=2020 -Dlicense.licenseName=apache_v2 diff --git a/pom.xml b/pom.xml index 845594b365..d723cafe1a 100644 --- a/pom.xml +++ b/pom.xml @@ -55,18 +55,19 @@ 2.3.2 1.3.4 5.8.2 - 3.21.9 + 3.21.9 1.1.1 1.14.1 1.9.4 2.11.0 2.20.0 - 1.7.36 + 2.0.6 12.1 3.6.1 + 1.5 1.72 - 2.19.0 - 4.1.87.Final + 2.20.10 + 4.1.89.Final 31.1-jre 2.14.2 1.17.6 @@ -77,7 +78,7 @@ 5.9.2 9.0.71 0.2.6 - 10.6.0 + 10.8.0 3.1.0 4.5.2 1.33 @@ -242,6 +243,11 @@ commons-math3 ${commons-math3.version} + + commons-fileupload + commons-fileupload + ${commons-fileupload.version} + org.bouncycastle bcpkix-jdk18on diff --git a/services/callback/Dockerfile b/services/callback/Dockerfile index c1b6bd0efe..fa97a9e999 100644 --- a/services/callback/Dockerfile +++ b/services/callback/Dockerfile @@ -34,7 +34,7 @@ RUN ${WORK_DIR}/mvnw --batch-mode -P docker-image --file ${WORK_DIR}/pom.xml ${M RUN cp ${WORK_DIR}/services/${SERVICE}/target/*.jar /usr/sap/${SERVICE}-service/service.jar RUN cp ${WORK_DIR}/scripts/DpkgHelper.java /DpkgHelper.java -FROM gcr.io/distroless/java17-debian11@sha256:61c05080a2fbf2f6fcb2eb11b936e30ebc7eb5cad474056e5e356b5b1b94d200 +FROM gcr.io/distroless/java17-debian11@sha256:135cf054951c23d8d78b3a7d8c8438f22ca1c15830901d976cb9bf728717334c ARG SERVICE=callback diff --git a/services/distribution/Dockerfile b/services/distribution/Dockerfile index cc81ab169e..b3aa16153f 100644 --- a/services/distribution/Dockerfile +++ b/services/distribution/Dockerfile @@ -34,7 +34,7 @@ RUN ${WORK_DIR}/mvnw --batch-mode -P docker-image --file ${WORK_DIR}/pom.xml ${M RUN cp ${WORK_DIR}/services/${SERVICE}/target/*.jar /usr/sap/${SERVICE}-service/service.jar RUN cp ${WORK_DIR}/scripts/DpkgHelper.java /DpkgHelper.java -FROM gcr.io/distroless/java17-debian11@sha256:61c05080a2fbf2f6fcb2eb11b936e30ebc7eb5cad474056e5e356b5b1b94d200 +FROM gcr.io/distroless/java17-debian11@sha256:135cf054951c23d8d78b3a7d8c8438f22ca1c15830901d976cb9bf728717334c ARG SERVICE=distribution diff --git a/services/download/Dockerfile b/services/download/Dockerfile index 3ed71dfdd7..d2546b6d56 100644 --- a/services/download/Dockerfile +++ b/services/download/Dockerfile @@ -34,7 +34,7 @@ RUN ${WORK_DIR}/mvnw --batch-mode -P docker-image --file ${WORK_DIR}/pom.xml ${M RUN cp ${WORK_DIR}/services/${SERVICE}/target/*.jar /usr/sap/${SERVICE}-service/service.jar RUN cp ${WORK_DIR}/scripts/DpkgHelper.java /DpkgHelper.java -FROM gcr.io/distroless/java17-debian11@sha256:61c05080a2fbf2f6fcb2eb11b936e30ebc7eb5cad474056e5e356b5b1b94d200 +FROM gcr.io/distroless/java17-debian11@sha256:135cf054951c23d8d78b3a7d8c8438f22ca1c15830901d976cb9bf728717334c ARG SERVICE=download diff --git a/services/pom.xml b/services/pom.xml index f6ecc57f3d..930352a191 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -16,9 +16,11 @@ distribution submission + diff --git a/services/submission/Dockerfile b/services/submission/Dockerfile index 47303219b2..752dacd2e7 100644 --- a/services/submission/Dockerfile +++ b/services/submission/Dockerfile @@ -34,7 +34,7 @@ RUN ${WORK_DIR}/mvnw --batch-mode -P docker-image --file ${WORK_DIR}/pom.xml ${M RUN cp ${WORK_DIR}/services/${SERVICE}/target/*.jar /usr/sap/${SERVICE}-service/service.jar RUN cp ${WORK_DIR}/scripts/DpkgHelper.java /DpkgHelper.java -FROM gcr.io/distroless/java17-debian11@sha256:61c05080a2fbf2f6fcb2eb11b936e30ebc7eb5cad474056e5e356b5b1b94d200 +FROM gcr.io/distroless/java17-debian11@sha256:135cf054951c23d8d78b3a7d8c8438f22ca1c15830901d976cb9bf728717334c ARG SERVICE=submission diff --git a/services/submission/src/main/java/app/coronawarn/server/services/submission/controller/SubmissionController.java b/services/submission/src/main/java/app/coronawarn/server/services/submission/controller/SubmissionController.java index 80254e4fd9..93a73b6dda 100644 --- a/services/submission/src/main/java/app/coronawarn/server/services/submission/controller/SubmissionController.java +++ b/services/submission/src/main/java/app/coronawarn/server/services/submission/controller/SubmissionController.java @@ -250,11 +250,13 @@ private DeferredResult> buildRealDeferredResult(final Submi new PrintableSubmissionPayload(payload)); deferredResult .setResult(ResponseEntity.status(BAD_REQUEST).header("cwa-error-code", "KEYS_ALREADY_EXIST").build()); + return deferredResult; } if (!tanVerifier.verifyTan(tan)) { submissionMonitor.incrementInvalidTanRequestCounter(); deferredResult.setResult(ResponseEntity.status(FORBIDDEN).build()); + return deferredResult; } else { saveDiagnosisKeys(diagnosisKeys); diff --git a/services/upload/Dockerfile b/services/upload/Dockerfile index ea1fc2a168..0cb4b50a59 100644 --- a/services/upload/Dockerfile +++ b/services/upload/Dockerfile @@ -34,7 +34,7 @@ RUN ${WORK_DIR}/mvnw --batch-mode -P docker-image --file ${WORK_DIR}/pom.xml ${M RUN cp ${WORK_DIR}/services/${SERVICE}/target/*.jar /usr/sap/${SERVICE}-service/service.jar RUN cp ${WORK_DIR}/scripts/DpkgHelper.java /DpkgHelper.java -FROM gcr.io/distroless/java17-debian11@sha256:61c05080a2fbf2f6fcb2eb11b936e30ebc7eb5cad474056e5e356b5b1b94d200 +FROM gcr.io/distroless/java17-debian11@sha256:135cf054951c23d8d78b3a7d8c8438f22ca1c15830901d976cb9bf728717334c ARG SERVICE=upload