Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-jforum/src/java/org/jahia/portlet/jforum
In directory james.mmbase.org:/tmp/cvs-serv24186
Modified Files:
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.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- JForumPortletBridge.java 16 Mar 2009 09:14:28 -0000 1.9
+++ JForumPortletBridge.java 16 Mar 2009 09:24:58 -0000 1.10
@@ -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