Skip to content

Commit

Permalink
Merge pull request #396 from kit-data-manager/dependabot/gradle/devel…
Browse files Browse the repository at this point in the history
…opment/org.springframework.boot-3.2.0
  • Loading branch information
dependabot[bot] committed Dec 12, 2023
2 parents 6375b24 + e28ec49 commit 4fc22a3
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 15 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '3.1.5'
id 'org.springframework.boot' version '3.2.0'
id 'io.spring.dependency-management' version '1.1.4'
id 'io.freefair.lombok' version '8.4'
id 'io.freefair.maven-publish-java' version '8.4'
Expand Down Expand Up @@ -49,8 +49,8 @@ if (System.getProperty('profile') == 'minimal') {

dependencies {
// Spring
implementation 'org.springframework:spring-messaging:6.0.2'
implementation 'org.springframework.cloud:spring-cloud-gateway-mvc:4.0.6'
implementation 'org.springframework:spring-messaging:6.1.1'
implementation 'org.springframework.cloud:spring-cloud-gateway-mvc:4.1.0'

// Spring Boot
implementation "org.springframework.boot:spring-boot-starter-data-rest"
Expand All @@ -69,8 +69,8 @@ dependencies {


// cloud support
implementation "org.springframework.cloud:spring-cloud-starter-config:4.0.3"
implementation "org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:4.0.2"
implementation "org.springframework.cloud:spring-cloud-starter-config:4.1.0"
implementation "org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:4.1.0"

// springdoc
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springDocVersion}"
Expand Down Expand Up @@ -210,7 +210,7 @@ bootJar {

duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'org.springframework.boot.loader.PropertiesLauncher'
attributes 'Main-Class': 'org.springframework.boot.loader.launch.PropertiesLauncher'
}
dependsOn asciidoctor
from ("${asciidoctor.outputDir}") {
Expand Down
6 changes: 6 additions & 0 deletions settings/application-default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,9 @@ spring.autoconfigure.exclude=org.keycloak.adapters.springboot.KeycloakAutoConfig
#keycloak.realm = myrealm
#keycloak.auth-server-url = http://localhost:8080/auth
#keycloak.resource = keycloak-angular

###############################################################################
# Due to bug in spring cloud gateway
# https://github.com/spring-cloud/spring-cloud-gateway/issues/3154
###############################################################################
spring.cloud.gateway.proxy.sensitive=content-length
6 changes: 6 additions & 0 deletions settings/application-docker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,9 @@ spring.autoconfigure.exclude=org.keycloak.adapters.springboot.KeycloakAutoConfig
#keycloak.realm = myrealm
#keycloak.auth-server-url = http://localhost:8080/auth
#keycloak.resource = keycloak-angular

###############################################################################
# Due to bug in spring cloud gateway
# https://github.com/spring-cloud/spring-cloud-gateway/issues/3154
###############################################################################
spring.cloud.gateway.proxy.sensitive=content-length
6 changes: 6 additions & 0 deletions settings/application-postgres.properties
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,9 @@ spring.autoconfigure.exclude=org.keycloak.adapters.springboot.KeycloakAutoConfig
#keycloak.realm = myrealm
#keycloak.auth-server-url = http://localhost:8080/auth
#keycloak.resource = keycloak-angular

###############################################################################
# Due to bug in spring cloud gateway
# https://github.com/spring-cloud/spring-cloud-gateway/issues/3154
###############################################################################
spring.cloud.gateway.proxy.sensitive=content-length
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public HttpFirewall allowUrlEncodedSlashHttpFirewall() {

@Bean
@SuppressWarnings("StringSplitter")
public FilterRegistrationBean corsFilter() {
public CorsFilter corsFilter() {
final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
Expand All @@ -155,9 +155,8 @@ public FilterRegistrationBean corsFilter() {
config.addExposedHeader("ETag");

source.registerCorsConfiguration("/**", config);
FilterRegistrationBean<Filter> bean;
bean = new FilterRegistrationBean<>(new CorsFilter(source));
bean.setOrder(0);
CorsFilter bean;
bean = new CorsFilter(source);
return bean;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public ResponseEntity<?> proxy(@RequestBody JsonNode body,
+ "to which the records refer as comma-separated values. "
+ "Regular expressions are also allowed. "
+ "See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/multi-index.html", required = true) @PathVariable(value = "schemaId") String schemaIds,
ProxyExchange<byte[]> proxy,
ProxyExchange<JsonNode> proxy,
@Parameter(hidden = true) final Pageable pgbl) throws Exception {

// Prepare query with authorization
Expand Down Expand Up @@ -123,7 +123,7 @@ public ResponseEntity<?> proxy(@RequestBody JsonNode body,
@ResponseBody
@PageableAsQueryParam
public ResponseEntity<?> proxy(@RequestBody JsonNode body,
ProxyExchange<byte[]> proxy,
ProxyExchange<JsonNode> proxy,
@Parameter(hidden = true) final Pageable pgbl) throws Exception {

// Prepare query with authorization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ public void testSearchProxy() throws Exception {
.contentType(MediaType.APPLICATION_JSON)
.content("{}"))
.andDo(print())
.andExpect(status().isForbidden());
.andExpect(status().isNotFound());
}

@Test
Expand All @@ -1712,7 +1712,7 @@ public void testSearchWithSchemaProxy() throws Exception {
.contentType(MediaType.APPLICATION_JSON)
.content("{}"))
.andDo(print())
.andExpect(status().isForbidden());
.andExpect(status().isNotFound());
}

@Test
Expand Down
8 changes: 7 additions & 1 deletion src/test/resources/test-config/application-test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,10 @@ spring.autoconfigure.exclude=org.keycloak.adapters.springboot.KeycloakAutoConfig
#
#keycloak.realm = myrealm
#keycloak.auth-server-url = http://localhost:8080/auth
#keycloak.resource = keycloak-angular
#keycloak.resource = keycloak-angular

###############################################################################
# Due to bug in spring cloud gateway
# https://github.com/spring-cloud/spring-cloud-gateway/issues/3154
###############################################################################
spring.cloud.gateway.proxy.sensitive=content-length

0 comments on commit 4fc22a3

Please sign in to comment.