svn commit: r1648471 - in /portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl: PathInfoEncodingPortalURL.java QueryStringEncodingPortalURL.java

[email protected]
Newsgroups gmane.comp.jakarta.jetspeed.devel
Message-ID <[email protected]>
Author: taylor
Date: Tue Dec 30 02:36:09 2014
New Revision: 1648471

URL: http://svn.apache.org/r1648471
Log:
JS2-1311: keeping all links secure based on portal url

Modified:
    portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/PathInfoEncodingPortalURL.java
    portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/QueryStringEncodingPortalURL.java

Modified: portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/PathInfoEncodingPortalURL.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/PathInfoEncodingPortalURL.java?rev=1648471&r1=1648470&r2=1648471&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/PathInfoEncodingPortalURL.java (original)
+++ portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/PathInfoEncodingPortalURL.java Tue Dec 30 02:36:09 2014
@@ -101,7 +101,7 @@ public class PathInfoEncodingPortalURL e
 
     protected String createPortletURL(String encodedNavState, boolean secure)
     {
-        StringBuffer buffer = new StringBuffer(getBaseURL(secure));
+        StringBuffer buffer = new StringBuffer(getBaseURL(base.isSecure()));
         buffer.append(getBasePath());
         if ( encodedNavState != null )
         {

Modified: portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/QueryStringEncodingPortalURL.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/QueryStringEncodingPortalURL.java?rev=1648471&r1=1648470&r2=1648471&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/QueryStringEncodingPortalURL.java (original)
+++ portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/url/impl/QueryStringEncodingPortalURL.java Tue Dec 30 02:36:09 2014
@@ -16,12 +16,12 @@
  */
 package org.apache.jetspeed.container.url.impl;
 
-import javax.servlet.http.HttpServletRequest;
-
 import org.apache.jetspeed.PortalContext;
 import org.apache.jetspeed.container.state.NavigationalState;
 import org.apache.jetspeed.container.url.BasePortalURL;
 
+import javax.servlet.http.HttpServletRequest;
+
 /**
  * QueryStringEncodingPortalURL encodes the NavigationalState as query parameter
  * *
@@ -68,7 +68,7 @@ public class QueryStringEncodingPortalUR
     
     protected String createPortletURL(String encodedNavigationalState, boolean secure)
     {
-        StringBuffer buffer = new StringBuffer(getBaseURL(secure));
+        StringBuffer buffer = new StringBuffer(getBaseURL(base.isSecure()));
         buffer.append(getBasePath());
         if ( getPath() != null )
         {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.