From bccf71453aabbb65f272885f6597e1df1a2d4090 Mon Sep 17 00:00:00 2001 From: imbajin Date: Fri, 7 May 2021 12:22:01 +0800 Subject: [PATCH] fix: replace all space in page to '+' before decode --- .../main/java/com/baidu/hugegraph/backend/page/PageState.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/page/PageState.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/page/PageState.java index cfd75f6bc4..2fc1669ac2 100644 --- a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/page/PageState.java +++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/page/PageState.java @@ -73,7 +73,8 @@ private byte[] toBytes() { public static PageState fromString(String page) { E.checkNotNull(page, "page"); - return fromBytes(toBytes(page)); + String originalPage = page.replace(' ', '+'); + return fromBytes(toBytes(originalPage)); } public static PageState fromBytes(byte[] bytes) {