Login

mvnForum

mvnForum Homepage Welcome Guest
  Search  
  Index  | Recent Threads  | Unanswered Threads  | List Polls  | Public Albums  | Who's Online  | Help


Quick Go »


No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
Post new Thread
Author
Previous Thread This topic has been viewed 634 times and has 3 replies Next Thread
Female datanucleus
Stranger




Joined: Aug 26, 2008
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Thread watch email URL problem

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
[Aug 26, 2008 1:17:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female datanucleus
Stranger




Joined: Aug 26, 2008
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Thread watch email URL problem

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 ?
[Sep 3, 2008 4:50:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female datanucleus
Stranger




Joined: Aug 26, 2008
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Thread watch email URL problem

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 ?
[Sep 3, 2008 7:14:57 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: Thread watch email URL problem

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
[Oct 1, 2008 9:45:00 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread