portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddew...@apache.org
Subject svn commit: r366989 - in /portals/pluto/trunk: pluto-container/src/main/java/org/apache/pluto/core/impl/PortletRequestImpl.java pluto-portal-driver/src/main/java/org/apache/pluto/driver/core/PortalUrlParser.java
Date Sun, 08 Jan 2006 06:01:25 GMT
Author: ddewolf
Date: Sat Jan  7 22:01:21 2006
New Revision: 366989

URL: http://svn.apache.org/viewcvs?rev=366989&view=rev
Log:
fixing Spec bug; Render parameters not set properly.

Modified:
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/impl/PortletRequestImpl.java
    portals/pluto/trunk/pluto-portal-driver/src/main/java/org/apache/pluto/driver/core/PortalUrlParser.java

Modified: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/impl/PortletRequestImpl.java
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/impl/PortletRequestImpl.java?rev=366989&r1=366988&r2=366989&view=diff
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/impl/PortletRequestImpl.java
(original)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/impl/PortletRequestImpl.java
Sat Jan  7 22:01:21 2006
@@ -484,6 +484,9 @@
     }
 
     public boolean isRequestedSessionIdValid() {
+        if(LOG.isDebugEnabled()) {
+            LOG.debug(" ***** IsRequestedSessionIdValid? "+getHttpServletRequest().isRequestedSessionIdValid());
+        }
         return getHttpServletRequest().isRequestedSessionIdValid();
     }
 

Modified: portals/pluto/trunk/pluto-portal-driver/src/main/java/org/apache/pluto/driver/core/PortalUrlParser.java
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/pluto-portal-driver/src/main/java/org/apache/pluto/driver/core/PortalUrlParser.java?rev=366989&r1=366988&r2=366989&view=diff
==============================================================================
--- portals/pluto/trunk/pluto-portal-driver/src/main/java/org/apache/pluto/driver/core/PortalUrlParser.java
(original)
+++ portals/pluto/trunk/pluto-portal-driver/src/main/java/org/apache/pluto/driver/core/PortalUrlParser.java
Sat Jan  7 22:01:21 2006
@@ -198,7 +198,7 @@
         for (int i = 0; i < values.length; i++) {
             value += values[i]==null?"":values[i];
             if (i + 1 != values.length) {
-                value += ",";
+                value += VALUE_DELIM;
             }
         }
         for (int i = 0; i < ENCODINGS.length; i++) {
@@ -261,11 +261,7 @@
                 StringUtils.replace(value, ENCODINGS[i][1], ENCODINGS[i][0]);
             }
 
-           StringTokenizer st = new StringTokenizer(value, VALUE_DELIM, false);
-            while(st.hasMoreTokens()) {
-                values.add(st.nextToken());
-            }
-            /*
+           /*
             int idx, start = 0;
             while( (idx = value.indexOf(VALUE_DELIM, start)) > -1) {
                 values.add(value.substring(start, idx));
@@ -273,6 +269,11 @@
             }
             */
         }
+        StringTokenizer st = new StringTokenizer(value, VALUE_DELIM, false);
+        while(st.hasMoreTokens()) {
+            values.add(st.nextToken());
+        }
+
         String[] vals = (String[])values.toArray(new String[values.size()]);
         return new PortalUrlParameter(windowId, param, vals);
     }



Mime
View raw message