From d4c843f5f507a699828fb18e5e8c73c6eb60f466 Mon Sep 17 00:00:00 2001 From: zhaojun1998 Date: Tue, 18 Feb 2020 20:02:37 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=20OneDrive=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E4=B8=AD=E5=8C=85=E5=90=AB=20+=20?= =?UTF-8?q?=E5=8F=B7,=20=E4=B8=94=E6=96=87=E4=BB=B6=E5=A4=B9=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=86=85=E5=AE=B9=E5=A4=A7=E4=BA=8E=20200=20=E4=B8=AA?= =?UTF-8?q?=E6=97=B6,=20=E8=AF=B7=E6=B1=82=E5=87=BA=E9=94=99=E7=9A=84=20BU?= =?UTF-8?q?G.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../onedrive/common/service/AbstractOneDriveService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/im/zhaojun/onedrive/common/service/AbstractOneDriveService.java b/src/main/java/im/zhaojun/onedrive/common/service/AbstractOneDriveService.java index a020c4c..ced5767 100644 --- a/src/main/java/im/zhaojun/onedrive/common/service/AbstractOneDriveService.java +++ b/src/main/java/im/zhaojun/onedrive/common/service/AbstractOneDriveService.java @@ -20,6 +20,8 @@ import org.springframework.http.ResponseEntity; import org.springframework.web.client.RestTemplate; import javax.annotation.Resource; +import java.net.URLDecoder; +import java.net.URLEncoder; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -100,6 +102,7 @@ public abstract class AbstractOneDriveService extends AbstractFileService { String requestUrl; if (nextLink != null) { + nextLink = nextLink.replace("+", "%2B"); requestUrl = URLUtil.decode(nextLink); }else if ("/".equalsIgnoreCase(fullPath) || "".equalsIgnoreCase(fullPath)) { requestUrl = DRIVER_ROOT_URL;