You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/09/12 14:03:32 UTC

[syncope] branch master updated: Upgrading Spring Cloud Gateway

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new db2f9ec  Upgrading Spring Cloud Gateway
db2f9ec is described below

commit db2f9ecbe24a15248fd08fe96814f7a7dc1d15a6
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Thu Sep 12 16:03:22 2019 +0200

    Upgrading Spring Cloud Gateway
---
 pom.xml                                                     | 2 +-
 sra/src/main/java/org/apache/syncope/sra/RouteProvider.java | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1c21393..2eef278 100644
--- a/pom.xml
+++ b/pom.xml
@@ -396,7 +396,7 @@ under the License.
     <spring.version>5.1.9.RELEASE</spring.version>
     <spring-security.version>5.1.6.RELEASE</spring-security.version>
     <spring-boot.version>2.1.8.RELEASE</spring-boot.version>
-    <spring-cloud-gateway.version>2.1.2.RELEASE</spring-cloud-gateway.version>
+    <spring-cloud-gateway.version>2.1.3.RELEASE</spring-cloud-gateway.version>
 
     <openjpa.version>3.1.0</openjpa.version>
     <hikaricp.version>3.3.1</hikaricp.version>
diff --git a/sra/src/main/java/org/apache/syncope/sra/RouteProvider.java b/sra/src/main/java/org/apache/syncope/sra/RouteProvider.java
index 65dec8d..3008ba6 100644
--- a/sra/src/main/java/org/apache/syncope/sra/RouteProvider.java
+++ b/sra/src/main/java/org/apache/syncope/sra/RouteProvider.java
@@ -83,6 +83,7 @@ import org.springframework.core.Ordered;
 import org.springframework.http.HttpMethod;
 import org.springframework.http.HttpStatus;
 import org.springframework.stereotype.Component;
+import org.springframework.util.unit.DataSize;
 import org.springframework.web.server.ServerWebExchange;
 
 @Component
@@ -280,7 +281,7 @@ public class RouteProvider {
 
             case SET_REQUEST_SIZE:
                 filter = ctx.getBean(RequestSizeGatewayFilterFactory.class).
-                        apply(c -> c.setMaxSize(Long.valueOf(gwfilter.getArgs().trim())));
+                        apply(c -> c.setMaxSize(DataSize.ofBytes(Long.valueOf(gwfilter.getArgs().trim()))));
                 break;
 
             case CUSTOM: