From a6bd2c8a1f8f1439351b226403bd8db04f82ced0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20L=C3=B6sing?= Date: Thu, 5 Jan 2023 13:53:50 +0100 Subject: [PATCH 1/4] Authorize with bag-cc-print-cert instead of bag-cc-certificatecreator. needs key cloak change before. --- .../covidcertificate/web/controller/PrintQueueController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/admin/bag/covidcertificate/web/controller/PrintQueueController.java b/src/main/java/ch/admin/bag/covidcertificate/web/controller/PrintQueueController.java index b033ab5..65a2445 100644 --- a/src/main/java/ch/admin/bag/covidcertificate/web/controller/PrintQueueController.java +++ b/src/main/java/ch/admin/bag/covidcertificate/web/controller/PrintQueueController.java @@ -23,7 +23,7 @@ public class PrintQueueController { private final CertificatePrintService certificatePrintService; @PostMapping - @PreAuthorize("hasRole('bag-cc-certificatecreator')") + @PreAuthorize("hasRole('bag-cc-print-cert')") public ResponseEntity print(@Valid @RequestBody CertificatePrintRequestDto certificatePrintRequestDto) { certificatePrintRequestDto.validate(); log.info("Adding certificate with uvci {} to the print queue", certificatePrintRequestDto.getUvci()); From c98dbd1363435b69f6c282aedb6611c31bffcf63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20L=C3=B6sing?= Date: Tue, 24 Jan 2023 14:44:03 +0100 Subject: [PATCH 2/4] Prepared next release 4.11.0. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2517157..e4dd972 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ ch.admin.bag.covidcertificate cc-printing-service - 4.10.2 + 4.11.0 cc-printing-service Service for printing Covid Certificates From 6faad9249d0643cd898430dc1d6ed035194db60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20L=C3=B6sing?= Date: Tue, 24 Jan 2023 15:09:47 +0100 Subject: [PATCH 3/4] Fixed test case and realigned release tag 4.11.0 --- .../web/controller/PrintQueueControllerSecurityTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/ch/admin/bag/covidcertificate/web/controller/PrintQueueControllerSecurityTest.java b/src/test/java/ch/admin/bag/covidcertificate/web/controller/PrintQueueControllerSecurityTest.java index 2029fb6..cad9752 100644 --- a/src/test/java/ch/admin/bag/covidcertificate/web/controller/PrintQueueControllerSecurityTest.java +++ b/src/test/java/ch/admin/bag/covidcertificate/web/controller/PrintQueueControllerSecurityTest.java @@ -54,7 +54,7 @@ class PrintQueueControllerSecurityTest { private static final JFixture fixture = new JFixture(); private static final String URL = "/api/v1/print"; - private static final String VALID_USER_ROLE = "bag-cc-certificatecreator"; + private static final String VALID_USER_ROLE = "bag-cc-print-cert"; private static final String INVALID_USER_ROLE = "invalid-role"; // Avoid port 8180, which is likely used by the local KeyCloak: private static final int MOCK_SERVER_PORT = 8182; From 33b8fcf877f6e974e4473989cbd9a3655f5ac02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20L=C3=B6sing?= Date: Wed, 8 Feb 2023 13:56:32 +0100 Subject: [PATCH 4/4] Updated spring boot starter, cc-backend-logging, jackson-core and snakeyaml. Prepared next release 4.11.1. --- pom.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index e4dd972..c3a396c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,22 +5,22 @@ org.springframework.boot spring-boot-starter-parent - 2.7.6 + 2.7.8 ch.admin.bag.covidcertificate cc-printing-service - 4.11.0 + 4.11.1 cc-printing-service Service for printing Covid Certificates 17 - 1.0.5 + 1.0.6 2.27.2 31.1-jre - 2.14.1 + 2.14.2 0.8.7 3.1.9 2.4.1 @@ -30,7 +30,7 @@ 1.0.0 5.7.1 4.8.0 - 1.32 + 1.33 2021.0.4 1.6.13