diff --git a/docker-compose.yml b/docker-compose.yml index e27abda29..892309cb1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -144,7 +144,7 @@ services: source: gigwa_data target: /usr/local/tomcat/config mongo: - image: mongo:4.2.21 + image: mongo:4.2.24 container_name: ${GIGWA_CONTAINER_NAME:-gigwa}_db restart: always command: --profile 0 --slowms 60000 --storageEngine wiredTiger --wiredTigerCollectionBlockCompressor=zstd --directoryperdb --quiet diff --git a/src/main/java/org/breedinginsight/services/geno/impl/GigwaGenotypeServiceImpl.java b/src/main/java/org/breedinginsight/services/geno/impl/GigwaGenotypeServiceImpl.java index e0c669e51..97c78cf05 100644 --- a/src/main/java/org/breedinginsight/services/geno/impl/GigwaGenotypeServiceImpl.java +++ b/src/main/java/org/breedinginsight/services/geno/impl/GigwaGenotypeServiceImpl.java @@ -82,7 +82,7 @@ @Slf4j public class GigwaGenotypeServiceImpl implements GenotypeService { private static final String AUTHORIZATION = "Authorization"; - private static final String X_FORWARDED_SERVER = "X-Forwarded-Server"; + private static final String X_FORWARDED_FOR = "X-Forwarded-For"; private static final String BEARER = "Bearer "; private static final String GIGWA_REST_BASE_PATH = "gigwa/rest"; private static final String GIGWA_BRAPI_BASE_PATH = GIGWA_REST_BASE_PATH + BrapiVersion.BRAPI_V2; @@ -613,7 +613,7 @@ private String submitRequestToGigwa(OkHttpClient client, Program program, UUID e .build()) .header(AUTHORIZATION, BEARER + gigwaAuthToken) - .header(X_FORWARDED_SERVER, referenceSource) + .header(X_FORWARDED_FOR, referenceSource) .post(RequestBody.create("", MediaType.parse("text/plain"))) .build(); diff --git a/src/test/java/org/breedinginsight/services/geno/impl/GigwaGenotypeServiceImplIntegrationTest.java b/src/test/java/org/breedinginsight/services/geno/impl/GigwaGenotypeServiceImplIntegrationTest.java index d16102713..afa593e7c 100644 --- a/src/test/java/org/breedinginsight/services/geno/impl/GigwaGenotypeServiceImplIntegrationTest.java +++ b/src/test/java/org/breedinginsight/services/geno/impl/GigwaGenotypeServiceImplIntegrationTest.java @@ -218,7 +218,7 @@ BrAPIEndpointProvider brAPIEndpointProvider() { public GigwaGenotypeServiceImplIntegrationTest() { super(); - mongo = new GenericContainer<>("mongo:4.2.21") + mongo = new GenericContainer<>("mongo:4.2.24") .withNetwork(super.getNetwork()) .withNetworkAliases("gigwa_db") .withImagePullPolicy(PullPolicy.defaultPolicy())