You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by as...@apache.org on 2019/03/28 13:14:49 UTC
[portals-pluto] branch master updated: PLUTO-745 Context root with
"/" in the middle leads to an error
This is an automated email from the ASF dual-hosted git repository.
asfgriff pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/portals-pluto.git
The following commit(s) were added to refs/heads/master by this push:
new 0ef804e PLUTO-745 Context root with "/" in the middle leads to an error
0ef804e is described below
commit 0ef804ed309f0b212a3b486cae2c4e06ee0583a7
Author: Neil Griffin <ne...@gmail.com>
AuthorDate: Thu Mar 28 09:14:26 2019 -0400
PLUTO-745 Context root with "/" in the middle leads to an error
---
.../main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java b/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
index d287ec7..459fadf 100644
--- a/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
+++ b/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
@@ -451,7 +451,7 @@ public class PortalURLParserImpl implements PortalURLParser {
pids.add(pid);
buffer.append(TOKEN_DELIM).append(PREFIX).append(PORTLET_ID);
try {
- buffer.append(URLEncoder.encode(pid, "UTF-8"));
+ buffer.append(urlEncode(pid));
} catch(Exception e) {
LOG.warn("Could not encode pid=" + pid);
}