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: 5
Post new Thread
Author
Previous Thread This topic has been viewed 1261 times and has 4 replies Next Thread
Male aemi
Stranger




Joined: Aug 10, 2004
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Wrong server name in activation mail if sitting behind apache / proxy / firewall

Hello

When sending activation mails the activation link is

http://localhost:someport/mvn....

In my environment, mvnforum sits behind an apache which proxies the requests to tomcat. So, the resolved server name was wrong. I think it's a bad idea to call

String serverName = ParamUtil.getServer2(request);

on line 249 in com.mvnforum.admin.GeneralAdminTasksWebHandler (refering to RC3). Instead, I think, the configuration parameter in mvncore.xml should be used. Maybe this method should be replaced in other places.

Otherwise I'm enjoying mvnforum since.

Cheers,
Michael
[Aug 10, 2004 11:05:53 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.pagnolia.ch [Link] Report threatening or abusive post: please login first  Go to top 
Male tanis22
Stranger




Joined: Aug 2, 2004
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Wrong server name in activation mail if sitting behind apache / proxy / firewall

I also see a issue with loginprocess behind a proxy server. Looks like it does not proxy that request.


Have you go the login to work without errors?
[Aug 18, 2004 8:06:17 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 aemi
Stranger




Joined: Aug 10, 2004
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Wrong server name in activation mail if sitting behind apache / proxy / firewall

no problems so far. Those URLs resolve correctly as far as I can see.
[Aug 19, 2004 6:10:02 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.pagnolia.ch [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: Wrong server name in activation mail if sitting behind apache / proxy / firewall

Hello

When sending activation mails the activation link is

http://localhost:someport/mvn....

In my environment, mvnforum sits behind an apache which proxies the requests to tomcat. So, the resolved server name was wrong. I think it's a bad idea to call

String serverName = ParamUtil.getServer2(request);

on line 249 in com.mvnforum.admin.GeneralAdminTasksWebHandler (refering to RC3). Instead, I think, the configuration parameter in mvncore.xml should be used. Maybe this method should be replaced in other places.

Otherwise I'm enjoying mvnforum since.

Cheers,
Michael

Thanks for your report, I took note to address this issue cool
----------------------------------------
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 9, 2004 6:48:08 PM] 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 
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: Wrong server name in activation mail if sitting behind apache / proxy / firewall

For your information, this suggestion has been implemented several years ago
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Jun 9, 2008 6:50:48 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