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 ms...@apache.org on 2016/04/08 15:40:30 UTC

[18/34] portals-pluto git commit: Fixed bug in PortalURLParserImpl that was preventing Pluto from working on Tomcat 8.0.32. Replaced blanks in the path portion with %20.

Fixed bug in PortalURLParserImpl that was preventing Pluto from working on
Tomcat 8.0.32. Replaced blanks in the path portion with %20.


Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/1d628077
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/1d628077
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/1d628077

Branch: refs/heads/V3Prototype
Commit: 1d628077541dcf5a644cef562d8d00376c4d0931
Parents: 46a03a1
Author: Scott Nicklous <ms...@apache.org>
Authored: Tue Mar 29 18:09:03 2016 +0200
Committer: Scott Nicklous <ms...@apache.org>
Committed: Tue Mar 29 18:09:03 2016 +0200

----------------------------------------------------------------------
 .../org/apache/pluto/driver/url/impl/PortalURLParserImpl.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/1d628077/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
----------------------------------------------------------------------
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 ef9492c..ca10756 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
@@ -436,7 +436,8 @@ public class PortalURLParserImpl implements PortalURLParser {
 
       // Start the pathInfo with the path to the render URL (page).
       if (portalURL.getRenderPath() != null) {
-         buffer.append(portalURL.getRenderPath());
+         String p = portalURL.getRenderPath().replaceAll(" ", "%20");
+         buffer.append(p);
       }
 
       // Add the portletIds with references