From 7b8899abec88f20c17014152f2f1b532926e4641 Mon Sep 17 00:00:00 2001 From: tanghc Date: Tue, 7 Apr 2020 10:32:12 +0800 Subject: [PATCH 1/3] 3.1.1 --- .../gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java index eff18885..2e275d93 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java @@ -130,7 +130,9 @@ public class IndexFilter implements WebFilter { validator.validate(apiParam); this.afterValidate(exchange, apiParam); } catch (ApiException e) { - log.error("验证失败,ip:{}, params:{}, errorMsg:{}", apiParam.fetchIp(), apiParam.toJSONString(), e.getMessage()); + log.error("验证失败,url:{}, ip:{}, params:{}, errorMsg:{}", + exchange.getRequest().getURI().toString(), + apiParam.fetchIp(), apiParam.toJSONString(), e.getMessage()); ServerWebExchangeUtil.setThrowable(exchange, e); } } From 33b9c870bbfacb1e746197c2c77743e36de0b7ae Mon Sep 17 00:00:00 2001 From: tanghc Date: Wed, 15 Apr 2020 15:58:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BF=9D=E5=AD=98=E5=90=8E=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=A0=B4=E6=8D=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gateway/filter/IndexFilter.java | 9 ++++--- .../controller/FileUploadDemoController.java | 21 ++++++++++++++++ sop-test/src/main/resources/img.png | Bin 0 -> 14180 bytes .../java/com/gitee/sop/test/AllInOneTest.java | 23 ++++++++++++++++++ 4 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 sop-test/src/main/resources/img.png diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java index 2e275d93..4e6f6654 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java @@ -80,15 +80,16 @@ public class IndexFilter implements WebFilter { if (request.getMethod() == HttpMethod.POST) { ServerRequest serverRequest = ServerWebExchangeUtil.createReadBodyRequest(exchange); // 读取请求体中的内容 - Mono modifiedBody = serverRequest.bodyToMono(String.class) - .flatMap(body -> { + Mono modifiedBody = serverRequest.bodyToMono(byte[].class) + .flatMap(data -> { + String body = new String(data, SopConstants.CHARSET_UTF8); // 构建ApiParam ApiParam apiParam = ServerWebExchangeUtil.getApiParam(exchange, body); // 签名验证 doValidate(exchange, apiParam); - return Mono.just(body); + return Mono.just(data); }); - BodyInserter bodyInserter = BodyInserters.fromPublisher(modifiedBody, (Class) String.class); + BodyInserter bodyInserter = BodyInserters.fromPublisher(modifiedBody, (Class)byte[].class); HttpHeaders headers = new HttpHeaders(); headers.putAll(exchange.getRequest().getHeaders()); diff --git a/sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/FileUploadDemoController.java b/sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/FileUploadDemoController.java index e5854db1..e25608b9 100644 --- a/sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/FileUploadDemoController.java +++ b/sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/FileUploadDemoController.java @@ -14,8 +14,10 @@ import org.springframework.web.bind.annotation.RestController; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletRequest; +import java.io.File; import java.io.IOException; import java.util.Collection; +import java.util.Optional; /** * 演示文件上传 @@ -70,6 +72,25 @@ public class FileUploadDemoController { return result; } + @ApiMapping(value = "demo.file.upload3") + public FileUploadResult file3(FileUploadParam2 param, HttpServletRequest request) { + System.out.println(param.getRemark()); + FileUploadResult result = new FileUploadResult(); + // 获取上传的文件 + Collection uploadFiles = UploadUtil.getUploadFiles(request); + Optional first = uploadFiles.stream().findFirst(); + if (first.isPresent()) { + MultipartFile multipartFile = first.get(); + try { + String path = System.getProperty("user.dir"); + multipartFile.transferTo(new File(path + "/img_"+System.currentTimeMillis()+".png")); + } catch (IOException e) { + e.printStackTrace(); + } + } + return result; + } + private FileUploadResult.FileMeta buildFileMeta(MultipartFile multipartFile) { // 文件名 String fileName = multipartFile.getOriginalFilename(); diff --git a/sop-test/src/main/resources/img.png b/sop-test/src/main/resources/img.png new file mode 100644 index 0000000000000000000000000000000000000000..821d3a66f17f1ea053caecb59cf24687fd00c41e GIT binary patch literal 14180 zcmV-qH=D?bP)4Tx07!|Imj_r=$rga;mLw!3v_J%;gx&;^UZjQ=K|rctBP4-@5<@}|u_KEL zt_2kfR&-UwwiZAZ8+K(8?ERq#in1;iY@obJ0_f`Z-uvFkH~0QIbLPxB=gyt)4gl)W z9I-eH)c_z{lq-n|4P;JCN@kLt0u=sKfjMyHaHZma=;#OlW$6A-d4CHa^80mrxv!u5 z|Ep;7_);zaNHpYBo|Kyn`3L~G8&@pJ1%S{E^=312#gK_GN}w%)0YWyHbGni}HqMVI_#6fNgrlqE(%cz5=zBcoSFY;IsUg~XUT@MhxnG(}W>x z$guWkoG_OiryPs&B-3LC{iFGOX>jZib0mtn zrW}h+<#H6U=|axnOD9GQ#mVCb1uOHy3i+b=!T7N7 zLI4LyKsw+9`$5gnh(tw?2wr1B0r(3NA4rGC1uA;^AP?%l3~QBFdyuB+%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9k$gt_XPqU z5quWGxab9&GfU>kDmLKfLMaQ%hdS}N`OdQa>Z@Jb`G&@@bJ|CfARkg(GsJa(XC6}L zG2BH{up}fQ#3E0kYssW=Uj79JzTgfCL4in>m+?pE+i1D&+zrjc847a@b7MkI-d#$F z3Y(g?LKNnrvS-v@e7U8Ur&!@mDsk;-X`68qUbw2YP{mLXEqzNd{+Tvbw2402)t05^8(jRb#J2xbsZP1xd{S@-L%3X?2VGbh9LTFfbn?gtXI*Vc1z+;kWsC<}&b3Y3oNaC3T>SD- zUo&ZyrnfAFYRvVFgX)`v(xaBZKKa%KD|W7eRt&nv-%U1!SR&}CmEn*{CL((FNp{!DK?$UA*0B5jmHMO&@4QE(rBWi5C<;pMMsS7?q-9qA?( zS&?tzfFza6SKb>e<&aW#0PTv-mp#|E=l*!lPJDth8R1-EYG%)r8^&^#KpFpkgW6<1 zTP1=aKvwai@-uCM&-h{DD>J+D4ZRLJwq$*sM(4~!ltA>%7!>)N1Q`?s49lXmrJDs4 zAuRzcJOp%e_fDV`t_^PJf+{G2y5SZ8RY;zYSHN27j^x~BeRy;9i~4Ds&y2LSI@D4- u8cActQ^|Q~q8LkMd1w|OVGm^t;Qs}WsDb-P?Ba0%0000 { + System.out.println(responseData); + JSONObject jsonObject = JSON.parseObject(responseData); + JSONObject data = jsonObject.getJSONObject(requestInfo.getDataNode()); + Assert.assertEquals(data.getString("code"), "10000"); + }) + ; + + client.execute(requestBuilder); + } + /** * 下载文件 */ From e8e34f01371a175b5b5745887e401c18d9dd5cdc Mon Sep 17 00:00:00 2001 From: tanghc Date: Wed, 15 Apr 2020 16:00:06 +0800 Subject: [PATCH 3/3] 3.1.2 --- changelog.md | 4 ++++ sop-auth/pom.xml | 2 +- sop-common/pom.xml | 2 +- sop-common/sop-bridge-gateway/pom.xml | 6 +++--- sop-common/sop-bridge-zuul/pom.xml | 6 +++--- sop-common/sop-gateway-common/pom.xml | 4 ++-- sop-common/sop-service-common/pom.xml | 4 ++-- sop-example/sop-book/sop-book-web/pom.xml | 2 +- sop-example/sop-easyopen/pom.xml | 2 +- sop-example/sop-springmvc/pom.xml | 2 +- sop-example/sop-story/sop-story-web/pom.xml | 2 +- sop-gateway/pom.xml | 2 +- sop-website/pom.xml | 2 +- 13 files changed, 22 insertions(+), 18 deletions(-) diff --git a/changelog.md b/changelog.md index cfc42ddd..b645af4e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # changelog +## 3.1.2 + +- 修复图片上传保存后图片破损问题 + ## 3.1.1 - 修复继承WebMvcConfigurationSupport导致的jackson序列化时间问题 diff --git a/sop-auth/pom.xml b/sop-auth/pom.xml index d5b56ffa..fa46dd66 100644 --- a/sop-auth/pom.xml +++ b/sop-auth/pom.xml @@ -26,7 +26,7 @@ com.gitee.sop sop-service-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT diff --git a/sop-common/pom.xml b/sop-common/pom.xml index 89c70b7d..39a33e38 100644 --- a/sop-common/pom.xml +++ b/sop-common/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.gitee.sop sop-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT pom diff --git a/sop-common/sop-bridge-gateway/pom.xml b/sop-common/sop-bridge-gateway/pom.xml index 078a0d9c..5c1465bd 100644 --- a/sop-common/sop-bridge-gateway/pom.xml +++ b/sop-common/sop-bridge-gateway/pom.xml @@ -5,11 +5,11 @@ sop-common com.gitee.sop - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT ../pom.xml 4.0.0 - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT sop-bridge-gateway @@ -17,7 +17,7 @@ com.gitee.sop sop-gateway-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT diff --git a/sop-common/sop-bridge-zuul/pom.xml b/sop-common/sop-bridge-zuul/pom.xml index 4787ab59..efd0927e 100644 --- a/sop-common/sop-bridge-zuul/pom.xml +++ b/sop-common/sop-bridge-zuul/pom.xml @@ -5,11 +5,11 @@ sop-common com.gitee.sop - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT ../pom.xml 4.0.0 - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT sop-bridge-zuul @@ -17,7 +17,7 @@ com.gitee.sop sop-gateway-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT diff --git a/sop-common/sop-gateway-common/pom.xml b/sop-common/sop-gateway-common/pom.xml index 5a1e11ca..bb26587d 100644 --- a/sop-common/sop-gateway-common/pom.xml +++ b/sop-common/sop-gateway-common/pom.xml @@ -5,11 +5,11 @@ com.gitee.sop sop-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT ../pom.xml sop-gateway-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT jar sop-gateway-common diff --git a/sop-common/sop-service-common/pom.xml b/sop-common/sop-service-common/pom.xml index 7f6343dd..7aa25523 100644 --- a/sop-common/sop-service-common/pom.xml +++ b/sop-common/sop-service-common/pom.xml @@ -6,11 +6,11 @@ com.gitee.sop sop-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT ../pom.xml sop-service-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT jar sop-service-common diff --git a/sop-example/sop-book/sop-book-web/pom.xml b/sop-example/sop-book/sop-book-web/pom.xml index 57a9ed0a..50b40b53 100644 --- a/sop-example/sop-book/sop-book-web/pom.xml +++ b/sop-example/sop-book/sop-book-web/pom.xml @@ -28,7 +28,7 @@ com.gitee.sop sop-service-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT com.gitee.sop diff --git a/sop-example/sop-easyopen/pom.xml b/sop-example/sop-easyopen/pom.xml index e9ef1f8d..f1810e84 100644 --- a/sop-example/sop-easyopen/pom.xml +++ b/sop-example/sop-easyopen/pom.xml @@ -29,7 +29,7 @@ com.gitee.sop sop-service-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT diff --git a/sop-example/sop-story/sop-story-web/pom.xml b/sop-example/sop-story/sop-story-web/pom.xml index 286d149d..9da1e54b 100644 --- a/sop-example/sop-story/sop-story-web/pom.xml +++ b/sop-example/sop-story/sop-story-web/pom.xml @@ -28,7 +28,7 @@ com.gitee.sop sop-service-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT com.gitee.sop diff --git a/sop-gateway/pom.xml b/sop-gateway/pom.xml index e3595ace..878516d8 100644 --- a/sop-gateway/pom.xml +++ b/sop-gateway/pom.xml @@ -34,7 +34,7 @@ com.gitee.sop sop-bridge-gateway - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT diff --git a/sop-website/pom.xml b/sop-website/pom.xml index 883372af..19beadad 100644 --- a/sop-website/pom.xml +++ b/sop-website/pom.xml @@ -35,7 +35,7 @@ com.gitee.sop sop-gateway-common - 3.1.1-SNAPSHOT + 3.1.2-SNAPSHOT