From 8c97e62e7b53216ddfb65323f4992ae8d1ef4f24 Mon Sep 17 00:00:00 2001 From: Jay Hodgson Date: Wed, 27 Nov 2024 10:30:42 -0800 Subject: [PATCH 1/2] SWC-7195: use decodePathSegment for place token --- .../sagebionetworks/web/client/presenter/SearchPresenter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/sagebionetworks/web/client/presenter/SearchPresenter.java b/src/main/java/org/sagebionetworks/web/client/presenter/SearchPresenter.java index 9d3a6b6680..bdbd0aa78f 100644 --- a/src/main/java/org/sagebionetworks/web/client/presenter/SearchPresenter.java +++ b/src/main/java/org/sagebionetworks/web/client/presenter/SearchPresenter.java @@ -1,6 +1,7 @@ package org.sagebionetworks.web.client.presenter; import com.google.gwt.activity.shared.AbstractActivity; +import com.google.gwt.core.client.GWT; import com.google.gwt.event.shared.EventBus; import com.google.gwt.http.client.URL; import com.google.gwt.place.shared.Place; @@ -302,7 +303,7 @@ private SearchQuery checkForJson(String queryString) { String fixedQueryString = queryString; // check for url encoded if (queryString.startsWith("%7B")) { - fixedQueryString = URL.decode(queryString); + fixedQueryString = URL.decodePathSegment(queryString); } if (fixedQueryString.startsWith("{")) { try { From f2e06fe1d9afcce44d8a087deff8c319733e19de Mon Sep 17 00:00:00 2001 From: Jay Hodgson Date: Wed, 27 Nov 2024 10:31:07 -0800 Subject: [PATCH 2/2] clean import --- .../sagebionetworks/web/client/presenter/SearchPresenter.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/org/sagebionetworks/web/client/presenter/SearchPresenter.java b/src/main/java/org/sagebionetworks/web/client/presenter/SearchPresenter.java index bdbd0aa78f..c4735213c9 100644 --- a/src/main/java/org/sagebionetworks/web/client/presenter/SearchPresenter.java +++ b/src/main/java/org/sagebionetworks/web/client/presenter/SearchPresenter.java @@ -1,7 +1,6 @@ package org.sagebionetworks.web.client.presenter; import com.google.gwt.activity.shared.AbstractActivity; -import com.google.gwt.core.client.GWT; import com.google.gwt.event.shared.EventBus; import com.google.gwt.http.client.URL; import com.google.gwt.place.shared.Place;