Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-jforum/src/java/org/jahia/portlet/jforum
In directory james.mmbase.org:/tmp/cvs-serv24206

Modified Files:
      Tag: b1_6
        JForumPortletBridge.java 
Log Message:
CMSC-1104 JForum portlet does not work on test environment


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-jforum/src/java/org/jahia/portlet/jforum
See also: http://www.mmbase.org/jira/browse/CMSC-1104


Index: JForumPortletBridge.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-jforum/src/java/org/jahia/portlet/jforum/JForumPortletBridge.java,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -b -r1.7.2.1 -r1.7.2.2
--- JForumPortletBridge.java    16 Mar 2009 09:16:55 -0000      1.7.2.1
+++ JForumPortletBridge.java    16 Mar 2009 09:25:30 -0000      1.7.2.2
@@ -176,16 +176,12 @@
             if(StringUtils.isEmpty(stagingPath)) {
                logger.info("Properity system.stagingpath is null");
             }
-            if (!stagingPath.endsWith("/")) {
-               stagingPath += "/";
-            }
+            stagingPath = checkSlash(stagingPath);
             defaultRequestUri = stagingPath+"forums/list.page";
          }
          else {
             String contextPath = request.getContextPath();
-            if (!contextPath.endsWith("/")) {
-               contextPath += "/";
-            }
+            contextPath = checkSlash(contextPath);
             defaultRequestUri += contextPath+"forums/list.page";
          }
          defaultModule = "forums";
@@ -248,6 +244,14 @@
 
    }
 
+
+   private String checkSlash(String path) {
+      if (!path.endsWith("/")) {
+         path += "/";
+      }
+      return path;
+   }
+
    private void updateRemoteUser(RenderRequest request) {
       // set username in session (SSO purpose)
       PortletSession session = request.getPortletSession();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to