|
| Index | Recent Threads | Unanswered Threads | List Polls | Public Albums | Who's Online | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 4 |
|
| Author |
|
|
Stranger Joined: Aug 26, 2008 Post Count: 3 Status: Offline |
Hi, we were using MVNForum 1.0.2 for some time and recently upgraded to 1.2 GA. All seems fine apart from one outstanding issue. When a user watches a thread and then later they get an email when someone has responded to it, the content of the email has an incorrect URL for the thread that was being watched. e.g I have a thread I was watching http://www.jpox.org/servlet/forum/viewthread_thread,5244 and I got an email back saying http://www.datanucleus.org/forum/forum/viewthread_thread,5244 So it has the thread URL incorrect. The contextPath is set to "forum". All URLs displayed on the forum site are correct, using "servlet/forum", and all image URLs are correct using the contextPath to qualify the image locations. It's just this email content. Is there somewhere I can fix this ? Thanks in advance |
||
|
|
Stranger Joined: Aug 26, 2008 Post Count: 3 Status: Offline |
OK, so to tackle this a different way 1. Is the source code for MVNForum browseable online somewhere ? If so anyone got a hyperlink? 2. Anyone know where the relevant code is for the generation of these emails as somewhere to start ? |
||
|
|
Stranger Joined: Aug 26, 2008 Post Count: 3 Status: Offline |
Ok, seems to be in http://mvnforum.cvs.sourceforge.net/mvnforum/...sion=1.76&view=markup and the forum base url is formed from String forumBase = ParamUtil.getServerPath() + ParamUtil.getContextPath() + UserModuleConfig.getUrlPattern(); If I look at how we have our forum configured we have <usermoduleconfig> <url_pattern>/forum</url_pattern> </usermoduleconfig> <paramoptions> <context_path>/forum</context_path> <server_path>http://www.datanucleus.org</server_path> </paramoptions> The servlet is running as http://www.datanucleus.org/servlet/forum/ and the files are stored under htdocs/forum/ Are these settings correct for this location and servlet ? Everything else seems to work fine. Presumably ParamUtil.getServerPath() = http://www.datanucleus.org ParamUtil.getContextPath() = /forum UserModuleConfig.getUrlPattern() = /forum so how does this hope to get the URL right in the email ? If I set <context_path>/forum</context_path> to be /servlet/forum then all smily images are not found - hence why we have /forum there (to line up with the file space where everything is). Is it that the Email URL being generated is simply wrong in the code ? |
||
|
|
mvnForum Developer Vietnam Joined: Oct 16, 2002 Post Count: 2956 Status: Offline |
If the correct link is: http://www.jpox.org/servlet/forum/viewthread_thread,5244 Then the config should be <usermoduleconfig> <url_pattern>/forum</url_pattern> </usermoduleconfig> <paramoptions> <context_path>/servlet</context_path> <server_path>http://www.jpox.org</server_path> </paramoptions> ---------------------------------------- Minh Nguyen mvnForum Developer Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com http://www.DienDanLinux.org |
||
|
|
|
|
|
Current timezone is GMT Jan 8, 2009 4:22:01 PM |
